Blame SOURCES/autofs-5.1.0-beta1-fix-map-format-init-in-lookup_init.patch

304803
autofs-5.1.0-beta1 - fix map format init in lookup_init()
304803
304803
From: Ian Kent <ikent@redhat.com>
304803
304803
is_format_amd is not initialized in modules/lookup_ldap.c:lookup_init()
304803
which can cause it to be incorrect leading to a failure to locate a
304803
base dn.
304803
---
304803
 CHANGELOG             |    1 +
304803
 modules/lookup_ldap.c |    1 +
304803
 2 files changed, 2 insertions(+)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -113,6 +113,7 @@
304803
 - fix out of order amd timestamp lookup.
304803
 - fix ldap default schema config.
304803
 - fix ldap default master map name config.
304803
+- fix map format init in lookup_init().
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
@@ -1647,6 +1647,7 @@ int lookup_init(const char *mapfmt, int
304803
 	/* If a map type isn't explicitly given, parse it like sun entries. */
304803
 	if (mapfmt == NULL)
304803
 		mapfmt = MAPFMT_DEFAULT;
304803
+	is_amd_format = 0;
304803
 	if (!strcmp(mapfmt, "amd")) {
304803
 		is_amd_format = 1;
304803
 		ctxt->format = MAP_FLAG_FORMAT_AMD;