Blame SOURCES/autofs-5.1.1-fix-use-after-free-in-open_lookup.patch

019928
autofs-5.1.1 - fix use after free in open_lookup()
019928
019928
From: Ian Kent <raven@themaw.net>
019928
019928
If storage can't be allocated for module type error exit.
019928
019928
Signed-off-by: Ian Kent <raven@themaw.net>
019928
---
019928
 CHANGELOG       |    1 +
019928
 daemon/module.c |    1 +
019928
 2 files changed, 2 insertions(+)
019928
019928
--- autofs-5.0.7.orig/CHANGELOG
019928
+++ autofs-5.0.7/CHANGELOG
019928
@@ -201,6 +201,7 @@
019928
 - fix memory leak in nisplus lookup_reinit().
019928
 - fix memory leak in ldap do_init().
019928
 - fix use after free in sun parser parse_init().
019928
+- fix use after free in open_lookup().
019928
 
019928
 25/07/2012 autofs-5.0.7
019928
 =======================
019928
--- autofs-5.0.7.orig/daemon/module.c
019928
+++ autofs-5.0.7/daemon/module.c
019928
@@ -83,6 +83,7 @@ int open_lookup(const char *name, const
019928
 			char *estr = strerror_r(errno, buf, MAX_ERR_BUF);
019928
 			logerr("%s%s", err_prefix, estr);
019928
 		}
019928
+		return NSS_STATUS_UNAVAIL;
019928
 	}
019928
 
019928
 	size = snprintf(fnbuf, sizeof(fnbuf),