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

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