]> granicus.if.org Git - curl/commitdiff
imap: Fixed auth preference not being honored when CAPABILITY not supported
authorSteve Holme <steve_holme@hotmail.com>
Tue, 24 Dec 2013 22:45:25 +0000 (22:45 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Tue, 24 Dec 2013 22:50:33 +0000 (22:50 +0000)
If a user indicated they preferred to authenticate using a SASL
mechanism, but SASL authentication wasn't supported by the server, curl
would always fall back to clear text when CAPABILITY wasn't supported,
even though the user didn't want to use this.

lib/imap.c

index e4185a3a15d479b26fe1f5f79d23337df5483efc..3f881ee0ec26e5fa8c7bd08c9e2119afdcf39304 100644 (file)
@@ -917,7 +917,7 @@ static CURLcode imap_state_capability_resp(struct connectdata *conn,
       result = imap_perform_authentication(conn);
   }
   else
-    result = imap_perform_login(conn);
+    result = imap_perform_authentication(conn);
 
   return result;
 }