summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-08-20 01:34:46 +0200
committerAnatol Belski <ab@php.net>2016-08-20 01:34:46 +0200
commit21f08a7488b54e9894b762b690b6674858881252 (patch)
tree6ffce00535c0570ba3540fd6c66e388cd38e4b49
parent057278b759fde998c62f3a500724824d45ad0290 (diff)
downloadphp-git-21f08a7488b54e9894b762b690b6674858881252.tar.gz
Fixed bug #72852 imap_mail null dereference
-rw-r--r--ext/imap/php_imap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index e91dbfad00..d5d3e2255a 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -3922,7 +3922,7 @@ int _php_imap_mail(char *to, char *subject, char *message, char *headers, char *
bt_len++;
offset = 0;
addr = NULL;
- rfc822_parse_adrlist(&addr, tempMailTo, NULL);
+ rfc822_parse_adrlist(&addr, tempMailTo, "NO HOST");
while (addr) {
if (addr->host == NULL || strcmp(addr->host, ERRHOST) == 0) {
PHP_IMAP_BAD_DEST;
@@ -3951,7 +3951,7 @@ int _php_imap_mail(char *to, char *subject, char *message, char *headers, char *
bt_len++;
offset = 0;
addr = NULL;
- rfc822_parse_adrlist(&addr, tempMailTo, NULL);
+ rfc822_parse_adrlist(&addr, tempMailTo, "NO HOST");
while (addr) {
if (addr->host == NULL || strcmp(addr->host, ERRHOST) == 0) {
PHP_IMAP_BAD_DEST;
@@ -3977,7 +3977,7 @@ int _php_imap_mail(char *to, char *subject, char *message, char *headers, char *
bt_len++;
offset = 0;
addr = NULL;
- rfc822_parse_adrlist(&addr, tempMailTo, NULL);
+ rfc822_parse_adrlist(&addr, tempMailTo, "NO HOST");
while (addr) {
if (addr->host == NULL || strcmp(addr->host, ERRHOST) == 0) {
PHP_IMAP_BAD_DEST;