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

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