Fixed bug #21442 (Crash of mail() on Windows when the first parameter
is empty).
This commit is contained in:
Edin Kadribasic 2003-01-07 11:24:17 +00:00
parent efb9fdf0e6
commit 6d55e3456f

View File

@ -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);
}