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

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