Hi, Ian,
If a server returns a set of mechanisms that all require authentication,
then the conn pointer is returned to the caller uninitialized. Fix
that.
Cheers,
Jeff
diff --git a/modules/cyrus-sasl.c b/modules/cyrus-sasl.c
index 4c6a671..806bf9f 100644
--- a/modules/cyrus-sasl.c
+++ b/modules/cyrus-sasl.c
@@ -798,7 +798,7 @@ sasl_bind_mech(unsigned logopt, LDAP *ldap, struct
lookup_context *ctxt, const c
sasl_conn_t *
sasl_choose_mech(unsigned logopt, LDAP *ldap, struct lookup_context *ctxt)
{
- sasl_conn_t *conn;
+ sasl_conn_t *conn = NULL;
int authenticated;
int i;
char **mechanisms;
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs