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

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