gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 164/282: smtp: Tidy up, following recent changes, to maintain th


From: gnunet
Subject: [gnurl] 164/282: smtp: Tidy up, following recent changes, to maintain the coding style
Date: Wed, 01 Apr 2020 14:30:29 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 8220ec82196f8331460f68b676b7aea6d9e3e806
Author: Steve Holme <address@hidden>
AuthorDate: Sun Feb 9 02:18:37 2020 +0000

    smtp: Tidy up, following recent changes, to maintain the coding style
    
    Closes #4892
---
 lib/smtp.c | 8 ++++----
 1 file 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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]