aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-03-06 20:19:46 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-03-06 20:19:46 +0000
commit37f3fcd631a90eb60dc3bc9b70682270fc53e8a7 (patch)
tree72d06eb6dca7f67c048b4670753db9e9ed69a90c /lib
parentc9f9f601b828e0121d4e10b532789c704c8c0716 (diff)
imap: Tidied up the final FETCH response function
Removed unnecessary state change on failure and setting of result code on success.
Diffstat (limited to 'lib')
-rw-r--r--lib/imap.c6
1 files 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;
}