1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

imap: Tidied up the final FETCH response function

Removed unnecessary state change on failure and setting of result code on
success.
This commit is contained in:
Steve Holme 2013-03-06 20:19:46 +00:00
parent c9f9f601b8
commit 37f3fcd631

View File

@ -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;
}