mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
MFB:
Fixed bug #21442 (Crash of mail() on Windows when the first parameter is empty).
This commit is contained in:
parent
efb9fdf0e6
commit
6d55e3456f
@ -571,12 +571,16 @@ int SendText(char *RPath, char *Subject, char *mailTo, char *mailCc, char *mailB
|
||||
}
|
||||
|
||||
if ((res = Post("DATA\r\n")) != SUCCESS) {
|
||||
efree(stripped_header);
|
||||
if (stripped_header) {
|
||||
efree(stripped_header);
|
||||
}
|
||||
return (res);
|
||||
}
|
||||
if ((res = Ack(&server_response)) != SUCCESS) {
|
||||
SMTP_ERROR_RESPONSE(server_response);
|
||||
efree(stripped_header);
|
||||
if (stripped_header) {
|
||||
efree(stripped_header);
|
||||
}
|
||||
return (res);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user