]> granicus.if.org Git - mutt/commitdiff
patch-20010829.vvv.pop_auth
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 30 Aug 2001 08:11:06 +0000 (08:11 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 30 Aug 2001 08:11:06 +0000 (08:11 +0000)
pop_auth.c

index d7c59b91fdaee3ac301bb425bba3c8c0948191a1..8ca1cdf4be7d9872d24e44f20a8b1aa733289629 100644 (file)
@@ -51,9 +51,12 @@ static pop_auth_res_t pop_auth_sasl (POP_DATA *pop_data, const char *method)
     return POP_A_FAILURE;
   }
 
+  if (!method)
+    method = pop_data->auth_list;
+
   FOREVER
   {
-    rc = sasl_client_start (saslconn, pop_data->auth_list, NULL,
+    rc = sasl_client_start (saslconn, method, NULL,
                            &interaction, &pc, &olen, &mech);
     if (rc != SASL_INTERACT)
       break;
@@ -373,12 +376,7 @@ int pop_authenticate (POP_DATA* pop_data)
        attempts++;
       if (ret == POP_A_SUCCESS || ret == POP_A_SOCKET ||
          (ret == POP_A_FAILURE && !option (OPTPOPAUTHTRYALL)))
-      {
-       /* awn@bcs.zp.ua: `comma' variable is unneeded here.  This was
-        * cut-n-paste, IMHO. */
-       /* comma = NULL; */
        break;
-      }
 
       authenticator++;
     }