]> granicus.if.org Git - curl/commitdiff
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 8607d001198eac251a2c7c6371ed78e187bfcf18..ab98e0a96ffc59fd1d3c9c2733858152eeefcf93 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;
 }