]> granicus.if.org Git - curl/commitdiff
imap: Fixed accidentally lossing the result code
authorSteve Holme <steve_holme@hotmail.com>
Thu, 28 Feb 2013 23:09:28 +0000 (23:09 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Thu, 28 Feb 2013 23:09:28 +0000 (23:09 +0000)
Accidentally lost the result code in imap_state_capability() and
imap_state_login() with commit b06a78622609.

lib/imap.c

index 52a3541bdef6df3d0cdfccd0ccde3ef801fd2821..aeb876210b204f9ecd57ce92b84beae9d7312394 100644 (file)
@@ -495,7 +495,7 @@ static CURLcode imap_state_capability(struct connectdata *conn)
   if(!result)
     state(conn, IMAP_CAPABILITY);
 
-  return CURLE_OK;
+  return result;
 }
 
 static CURLcode imap_state_starttls(struct connectdata *conn)
@@ -560,7 +560,7 @@ static CURLcode imap_state_login(struct connectdata *conn)
   if(!result)
     state(conn, IMAP_LOGIN);
 
-  return CURLE_OK;
+  return result;
 }
 
 static CURLcode imap_authenticate(struct connectdata *conn)