imap: Removed unnecessary state change on failure
authorSteve Holme <steve_holme@hotmail.com>
Fri, 15 Feb 2013 18:33:10 +0000 (18:33 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 15 Feb 2013 18:33:10 +0000 (18:33 +0000)
lib/imap.c

index 8607d00..ab98e0a 100644 (file)
@@ -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;
 }