]> granicus.if.org Git - curl/commitdiff
smtp: Fixed broken RCPT TO from commit 0ea4a80bb23666
authorSteve Holme <steve_holme@hotmail.com>
Fri, 15 Nov 2013 22:20:56 +0000 (22:20 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 15 Nov 2013 22:20:56 +0000 (22:20 +0000)
lib/smtp.c

index adc5efcd77ba4d03777a8cc865a797d89d8c65f4..04fe76dd82ce29f6f93a69160b2588958478a5ea 100644 (file)
@@ -1349,12 +1349,13 @@ static CURLcode smtp_state_rcpt_resp(struct connectdata *conn, int smtpcode,
     if(smtp->rcpt)
       /* Send the next RCPT TO command */
       result = smtp_perform_rcpt_to(conn);
-    else
+    else {
       /* Send the DATA command */
       result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", "DATA");
 
-    if(!result)
-      state(conn, SMTP_DATA);
+      if(!result)
+        state(conn, SMTP_DATA);
+    }
   }
 
   return result;