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