Blame SOURCES/autofs-5.0.7-add-initialization-of-bind_result-in.patch-do_sasl_bind.patch

ab3a3d
autofs-5.0.7 - add initialization of bind_result in-do_sasl_bind()
ab3a3d
ab3a3d
From: Ian Kent <raven@themaw.net>
ab3a3d
ab3a3d
There is an unlikley code path where bind_result could be used uninitialized
ab3a3d
so initialize it so it isn't incorrectly used if it has rubish in it.
ab3a3d
---
ab3a3d
 modules/cyrus-sasl.c |    2 +-
ab3a3d
 1 file changed, 1 insertion(+), 1 deletion(-)
ab3a3d
ab3a3d
diff --git a/modules/cyrus-sasl.c b/modules/cyrus-sasl.c
ab3a3d
index b456333..68f9242 100644
ab3a3d
--- a/modules/cyrus-sasl.c
ab3a3d
+++ b/modules/cyrus-sasl.c
ab3a3d
@@ -210,7 +210,7 @@ int
ab3a3d
 do_sasl_bind(unsigned logopt, LDAP *ld, sasl_conn_t *conn, const char **clientout,
ab3a3d
 	     unsigned int *clientoutlen, const char *auth_mech, int sasl_result)
ab3a3d
 {
ab3a3d
-	int ret, msgid, bind_result;
ab3a3d
+	int ret, msgid, bind_result = LDAP_OTHER;
ab3a3d
 	struct berval client_cred, *server_cred, temp_cred;
ab3a3d
 	LDAPMessage *results;
ab3a3d
 	int have_data, expected_data;