Blame SOURCES/autofs-5.1.1-fix-use-after-free-in-sun-parser-parse_init.patch

019928
autofs-5.1.1 - fix use after free in sun parser parse_init()
019928
019928
From: Ian Kent <raven@themaw.net>
019928
019928
Change to free context in function it was allocated (parse_init) on
019928
error to avoid use after free.
019928
019928
Signed-off-by: Ian Kent <raven@themaw.net>
019928
---
019928
 CHANGELOG           |    1 +
019928
 modules/parse_sun.c |    1 -
019928
 2 files changed, 1 insertion(+), 1 deletion(-)
019928
019928
--- autofs-5.0.7.orig/CHANGELOG
019928
+++ autofs-5.0.7/CHANGELOG
019928
@@ -200,6 +200,7 @@
019928
 - fix sasl connection concurrancy problem.
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
 
019928
 25/07/2012 autofs-5.0.7
019928
 =======================
019928
--- autofs-5.0.7.orig/modules/parse_sun.c
019928
+++ autofs-5.0.7/modules/parse_sun.c
019928
@@ -345,7 +345,6 @@ static int do_init(int argc, const char
019928
 			}
019928
 			if (!noptstr) {
019928
 				char *estr = strerror_r(errno, buf, MAX_ERR_BUF);
019928
-				kill_context(ctxt);
019928
 				logerr(MODPREFIX "%s", estr);
019928
 				return 1;
019928
 			}