From: Steve Holme Date: Mon, 15 Apr 2013 19:10:25 +0000 (+0100) Subject: pop3: Updated the coding style of pop3_state_servergreet_resp() X-Git-Tag: curl-7_31_0~166 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26bdafcbf9cd8b7c051eb1832c90b8e2cfbe670c;p=curl pop3: Updated the coding style of pop3_state_servergreet_resp() Updated the coding style, in this function, to be consistent with other response functions rather then performing a hard return on failure. --- diff --git a/lib/pop3.c b/lib/pop3.c index 7d926c3dc..dfd8edcae 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -700,10 +700,10 @@ static CURLcode pop3_state_servergreet_resp(struct connectdata *conn, if(pop3code != '+') { failf(data, "Got unexpected pop3-server response"); - return CURLE_FTP_WEIRD_SERVER_REPLY; + result = CURLE_FTP_WEIRD_SERVER_REPLY; } - - result = pop3_perform_capa(conn); + else + result = pop3_perform_capa(conn); return result; }