Blame SOURCES/autofs-5.1.1-fix-typo-in-autofs_sasl_bind.patch

019928
autofs-5.1.1 - fix typo in autofs_sasl_bind()
019928
019928
From: Ian Kent <raven@themaw.net>
019928
019928
Changes to autofs_sasl_bind() introduced an incorrect variable reference.
019928
019928
Signed-off-by: Ian Kent <raven@themaw.net>
019928
---
019928
 CHANGELOG            |    1 +
019928
 modules/cyrus-sasl.c |    2 +-
019928
 2 files changed, 2 insertions(+), 1 deletion(-)
019928
019928
--- autofs-5.0.7.orig/CHANGELOG
019928
+++ autofs-5.0.7/CHANGELOG
019928
@@ -202,6 +202,7 @@
019928
 - fix memory leak in ldap do_init().
019928
 - fix use after free in sun parser parse_init().
019928
 - fix use after free in open_lookup().
019928
+- fix typo in autofs_sasl_bind().
019928
 
019928
 25/07/2012 autofs-5.0.7
019928
 =======================
019928
--- autofs-5.0.7.orig/modules/cyrus-sasl.c
019928
+++ autofs-5.0.7/modules/cyrus-sasl.c
019928
@@ -928,7 +928,7 @@ autofs_sasl_bind(unsigned logopt,
019928
 	else
019928
 		sasl_conn = sasl_choose_mech(logopt, conn->ldap, ctxt);
019928
 
019928
-	if (!conn)
019928
+	if (!sasl_conn)
019928
 		return -1;
019928
 
019928
 	conn->sasl_conn = sasl_conn;