Skip to content
Permalink
Browse files

smtp: Tidy up following recent changes to maintain coding style

  • Loading branch information
captain-caveman2k committed Feb 9, 2020
1 parent 012ce23 commit 1b862614a826dc8e86c359d1af82d644868213a6
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/smtp.c
@@ -568,10 +568,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 };

@@ -601,6 +598,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;

0 comments on commit 1b86261

Please sign in to comment.
You can’t perform that action at this time.