From: Steve Holme Date: Fri, 15 Nov 2013 22:20:56 +0000 (+0000) Subject: smtp: Fixed broken RCPT TO from commit 0ea4a80bb23666 X-Git-Tag: curl-7_34_0~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eedca5055e992fa9b035541e9dbff053c693415a;p=curl smtp: Fixed broken RCPT TO from commit 0ea4a80bb23666 --- 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;