aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2020-02-09 02:18:37 +0000
committerSteve Holme <steve_holme@hotmail.com>2020-02-26 14:54:51 +0000
commit8220ec82196f8331460f68b676b7aea6d9e3e806 (patch)
tree1210b55810979840c1109a8a57edeb84a8c1b6d4
parent34a1ffb05f3cf8efb8781627c95fffe89a1e86a1 (diff)
smtp: Tidy up, following recent changes, to maintain the coding style
Closes #4892
-rw-r--r--lib/smtp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index b3b1e83ed..a87e6126a 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -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 };
@@ -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;