Blame SOURCES/autofs-5.1.0-init-qdn-before-use.patch

304803
autofs-5.1.0 - init qdn before use in get_query_dn()
304803
304803
From: Ian Kent <ikent@redhat.com>
304803
304803
Ensure qdn is initialized before use in case there's garbage in it.
304803
---
304803
 CHANGELOG             |    1 +
304803
 modules/lookup_ldap.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
@@ -169,6 +169,7 @@
304803
 - fix macro usage in lookup_program.c.
304803
 - remove unused offset handling code.
304803
 - fix mount as you go offset selection.
304803
+- init qdn before use in get_query_dn().
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
--- autofs-5.0.7.orig/modules/lookup_ldap.c
304803
+++ autofs-5.0.7/modules/lookup_ldap.c
304803
@@ -335,7 +335,7 @@ LDAP *init_ldap_connection(unsigned logo
304803
 static int get_query_dn(unsigned logopt, LDAP *ldap, struct lookup_context *ctxt, const char *class, const char *key)
304803
 {
304803
 	char buf[MAX_ERR_BUF];
304803
-	char *query, *dn, *qdn;
304803
+	char *query, *dn, *qdn = NULL;
304803
 	LDAPMessage *result = NULL, *e;
304803
 	char *attrs[2];
304803
 	struct berval **value;