From: Steve Holme Date: Mon, 15 Apr 2013 19:11:25 +0000 (+0100) Subject: smtp: Updated the coding style of smtp_state_servergreet_resp() X-Git-Tag: curl-7_31_0~165 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=651254dcc713d0f53375f8abc0885a8d2ba0389f;p=thirdparty%2Fcurl.git smtp: Updated the coding style of smtp_state_servergreet_resp() Updated the coding style, in this function, to be consistant with other response functions rather then performing a hard return on failure. --- diff --git a/lib/smtp.c b/lib/smtp.c index 49da078ef3..fd86a95ba4 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -509,10 +509,10 @@ static CURLcode smtp_state_servergreet_resp(struct connectdata *conn, if(smtpcode/100 != 2) { failf(data, "Got unexpected smtp-server response: %d", smtpcode); - return CURLE_FTP_WEIRD_SERVER_REPLY; + result = CURLE_FTP_WEIRD_SERVER_REPLY; } - - result = smtp_state_ehlo(conn); + else + result = smtp_state_ehlo(conn); return result; }