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 9, 2020
1 parent 1ed6bc3 commit 07e9c9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/smtp.c
Expand Up @@ -543,10 +543,7 @@ static CURLcode smtp_perform_mail(struct connectdata *conn)
struct Curl_easy *data = conn->data;

/* 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 *mailbox = NULL;
struct hostname host = { NULL, NULL, NULL, NULL };

Expand All @@ -571,6 +568,9 @@ static CURLcode smtp_perform_mail(struct connectdata *conn)

free(mailbox);
}
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 07e9c9e

Please sign in to comment.