From: Steve Holme Date: Wed, 6 Mar 2013 20:19:46 +0000 (+0000) Subject: imap: Tidied up the final FETCH response function X-Git-Tag: curl-7_30_0~184 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37f3fcd631a90eb60dc3bc9b70682270fc53e8a7;p=thirdparty%2Fcurl.git imap: Tidied up the final FETCH response function Removed unnecessary state change on failure and setting of result code on success. --- diff --git a/lib/imap.c b/lib/imap.c index 3130e1abb5..894d044e44 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -1487,10 +1487,8 @@ static CURLcode imap_state_fetch_final_resp(struct connectdata *conn, if(imapcode != 'O') result = CURLE_FTP_WEIRD_SERVER_REPLY; /* TODO: Fix error code */ else - result = CURLE_OK; - - /* End of DONE phase */ - state(conn, IMAP_STOP); + /* End of DONE phase */ + state(conn, IMAP_STOP); return result; }