aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-02-15 18:33:10 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-02-15 18:33:10 +0000
commit673b7ba80a5dbfbdb597066fff2a0b3b8b210c8f (patch)
tree793374a304b8e7edd0807d31c3fb0dfcc3099d42 /lib
parent154bf3d699bdd5ba8d2649b3f77a21b5b7856818 (diff)
imap: Removed unnecessary state change on failure
Diffstat (limited to 'lib')
-rw-r--r--lib/imap.c6
1 files 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;
}