From: Thomas Roessler Date: Wed, 13 Jun 2001 08:27:44 +0000 (+0000) Subject: This patch closes a ridiculous bug where the SASL library could be X-Git-Tag: mutt-1-3-20-rel~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8eccf76afffd5dd01e400e2de375ee3065294f29;p=mutt This patch closes a ridiculous bug where the SASL library could be 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. --- diff --git a/pop_auth.c b/pop_auth.c index 2df92212..05530753 100644 --- a/pop_auth.c +++ b/pop_auth.c @@ -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"));