]> granicus.if.org Git - mutt/commitdiff
This patch closes a ridiculous bug where the SASL library could be
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 13 Jun 2001 08:27:44 +0000 (08:27 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 13 Jun 2001 08:27:44 +0000 (08:27 +0000)
used without being initialised. I don't understand why lots of people
weren't having problems, unless no one who uses SASL uses POP :)

closes 549

From Brendan Cully.

pop_auth.c

index 2df92212e15a82e28f0d3f09a393a2c112f15f6e..0553075362c90a242f1ef48a5017b80adc9eb618 100644 (file)
@@ -48,6 +48,9 @@ static pop_auth_res_t pop_auth_sasl (POP_DATA *pop_data)
   if (!pop_data->auth_list)
     return POP_A_UNAVAIL;
 
+  if (mutt_sasl_start () != SASL_OK)
+    return POP_A_FAILURE;
+
   if (mutt_sasl_client_new (pop_data->conn, &saslconn) < 0)
   {
     dprint (1, (debugfile, "pop_auth_sasl: Error allocating SASL connection.\n"));