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

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