]> granicus.if.org Git - curl/commitdiff
imap/pop3: Post graceful cancellation consistency changes
authorSteve Holme <steve_holme@hotmail.com>
Wed, 4 Dec 2013 20:10:33 +0000 (20:10 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 4 Dec 2013 20:19:36 +0000 (20:19 +0000)
lib/imap.c
lib/pop3.c

index 60e7489df3ddc7910e7632d01d7c4feb5d0d6c6f..0e558ae1a4f8e95a0d2d11ddc0f913f5954a722b 100644 (file)
@@ -584,8 +584,8 @@ static CURLcode imap_perform_authenticate(struct connectdata *conn)
     return result;
   }
 
-  /* Calculate the supported authentication mechanism by decreasing order of
-     security */
+  /* Calculate the supported authentication mechanism, by decreasing order of
+     security, as well as the initial response where appropriate */
 #ifndef CURL_DISABLE_CRYPTO_AUTH
   if((imapc->authmechs & SASL_MECH_DIGEST_MD5) &&
      (imapc->prefmech & SASL_MECH_DIGEST_MD5)) {
index fb2675d87b49a5e5cff84336867517ee73e1615f..d432f9d0f37f2a9da515d0b7aa81b7f5c96d8335 100644 (file)
@@ -601,8 +601,8 @@ static CURLcode pop3_perform_authenticate(struct connectdata *conn)
     return result;
   }
 
-  /* Calculate the supported authentication mechanism by decreasing order of
-     security */
+  /* Calculate the supported authentication mechanism, by decreasing order of
+     security, as well as the initial response where appropriate */
   if(pop3c->authtypes & POP3_TYPE_SASL) {
 #ifndef CURL_DISABLE_CRYPTO_AUTH
     if((pop3c->authmechs & SASL_MECH_DIGEST_MD5) &&
@@ -1625,12 +1625,12 @@ static CURLcode pop3_perform(struct connectdata *conn, bool *connected,
 {
   /* This is POP3 and no proxy */
   CURLcode result = CURLE_OK;
+  struct POP3 *pop3 = conn->data->req.protop;
 
   DEBUGF(infof(conn->data, "DO phase starts\n"));
 
   if(conn->data->set.opt_no_body) {
     /* Requested no body means no transfer */
-    struct POP3 *pop3 = conn->data->req.protop;
     pop3->transfer = FTPTRANSFER_INFO;
   }