Skip to content

Commit

Permalink
smtp: Tidy up following recent changes to maintain coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-caveman2k committed Feb 17, 2020
1 parent 0f66eac commit 383e24b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/smtp.c
Expand Up @@ -566,10 +566,7 @@ static CURLcode smtp_perform_mail(struct connectdata *conn)
bool utf8 = false;

/* Calculate the FROM parameter */
if(!data->set.str[STRING_MAIL_FROM])
/* Null reverse-path, RFC-5321, sect. 3.6.3 */
from = strdup("<>");
else {
if(data->set.str[STRING_MAIL_FROM]) {
char *address = NULL;
struct hostname host = { NULL, NULL, NULL, NULL };

Expand Down Expand Up @@ -598,6 +595,9 @@ static CURLcode smtp_perform_mail(struct connectdata *conn)

free(address);
}
else
/* Null reverse-path, RFC-5321, sect. 3.6.3 */
from = strdup("<>");

if(!from)
return CURLE_OUT_OF_MEMORY;
Expand Down

0 comments on commit 383e24b

Please sign in to comment.