From 37f3fcd631a90eb60dc3bc9b70682270fc53e8a7 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Wed, 6 Mar 2013 20:19:46 +0000 Subject: [PATCH] imap: Tidied up the final FETCH response function Removed unnecessary state change on failure and setting of result code on success. --- lib/imap.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/imap.c b/lib/imap.c index 3130e1abb..894d044e4 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; }