From 8eccf76afffd5dd01e400e2de375ee3065294f29 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Wed, 13 Jun 2001 08:27:44 +0000 Subject: [PATCH] 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. --- pop_auth.c | 3 +++ 1 file changed, 3 insertions(+) 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")); -- 2.40.0