From eedca5055e992fa9b035541e9dbff053c693415a Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Fri, 15 Nov 2013 22:20:56 +0000 Subject: [PATCH] smtp: Fixed broken RCPT TO from commit 0ea4a80bb23666 --- lib/smtp.c | 7 ++++--- 1 file 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;