File php-CVE-2018-19935.patch of Package php7.20976

X-Git-Url: http://208.43.231.11:8000/?p=php-src.git;a=blobdiff_plain;f=ext%2Fimap%2Fphp_imap.c;h=b30440f000f38f1e040a909a290db754ace49042;hp=a23e84c085216c65d9ebe4a61840f5747dd4626b;hb=7edc639b9ff1c3576773d79d016abbeed1f93846;hpb=aabdb71dc3739f5e06916e2a4e24deb37437b1e8

Index: php-7.0.7/ext/imap/php_imap.c
===================================================================
--- php-7.0.7.orig/ext/imap/php_imap.c	2018-12-10 16:55:40.758312636 +0100
+++ php-7.0.7/ext/imap/php_imap.c	2018-12-10 16:58:21.031127128 +0100
@@ -4126,7 +4126,6 @@ PHP_FUNCTION(imap_mail)
 	if (!ZSTR_LEN(message)) {
 		/* this is not really an error, so it is allowed. */
 		php_error_docref(NULL, E_WARNING, "No message string in mail command");
-		message = NULL;
 	}
 
 	if (_php_imap_mail(ZSTR_VAL(to), ZSTR_VAL(subject), ZSTR_VAL(message), headers?ZSTR_VAL(headers):NULL, cc?ZSTR_VAL(cc):NULL,
openSUSE Build Service is sponsored by