From: Steve Holme Date: Fri, 15 Feb 2013 18:33:10 +0000 (+0000) Subject: imap: Removed unnecessary state change on failure X-Git-Tag: curl-7_30_0~341 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=673b7ba80a5dbfbdb597066fff2a0b3b8b210c8f;p=curl imap: Removed unnecessary state change on failure --- diff --git a/lib/imap.c b/lib/imap.c index 8607d0011..ab98e0a96 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -1057,9 +1057,9 @@ static CURLcode imap_state_auth_final_resp(struct connectdata *conn, failf(data, "Authentication failed: %d", imapcode); result = CURLE_LOGIN_DENIED; } - - /* End of connect phase */ - state(conn, IMAP_STOP); + else + /* End of connect phase */ + state(conn, IMAP_STOP); return result; }