mirror of
https://github.com/curl/curl.git
synced 2025-03-25 15:50:32 +08: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:
parent
c9f9f601b8
commit
37f3fcd631
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user