aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-11-15 22:20:56 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-11-15 22:20:56 +0000
commiteedca5055e992fa9b035541e9dbff053c693415a (patch)
treefe95fb3ba4d410ca1e0ca0baa3c6e70b66edbf0e /lib
parent5d040632ac411f6192e4ed111dddee834d028ca8 (diff)
smtp: Fixed broken RCPT TO from commit 0ea4a80bb23666
Diffstat (limited to 'lib')
-rw-r--r--lib/smtp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index adc5efcd7..04fe76dd8 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -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;