mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed bug #69115 crash in mail
There were two issues - php_pcre_replace could be used directly and sbject_str could be NULL - the Windows sendmail variant was freeing something passed from the outside
This commit is contained in:
parent
8f5676f73e
commit
30830bcefd
3 changed files with 17 additions and 2 deletions
|
@ -292,7 +292,6 @@ PHPAPI int TSendMail(char *host, int *error, char **error_message,
|
|||
efree(RPath);
|
||||
}
|
||||
if (headers) {
|
||||
efree(headers);
|
||||
efree(headers_lc);
|
||||
}
|
||||
/* 128 is safe here, the specifier in snprintf isn't longer than that */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue