From 673b7ba80a5dbfbdb597066fff2a0b3b8b210c8f Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Fri, 15 Feb 2013 18:33:10 +0000 Subject: imap: Removed unnecessary state change on failure --- lib/imap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- cgit v1.2.3