Blame SOURCES/autofs-5.0.7-fix-possible-use-after-free-in-lookup_dir-lookup_init.patch

304803
autofs-5.0.7 - fix possible use after free in lookup_dir.c:lookup_init()
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
Add a missing error return in lookup_dir.c:lookup_init().
304803
---
304803
 modules/lookup_dir.c |    1 +
304803
 1 file changed, 1 insertion(+)
304803
304803
diff --git a/modules/lookup_dir.c b/modules/lookup_dir.c
304803
index 07471b7..cbeda1f 100644
304803
--- a/modules/lookup_dir.c
304803
+++ b/modules/lookup_dir.c
304803
@@ -98,6 +98,7 @@ int lookup_init(const char *mapfmt, int argc, const char *const *argv, void **co
304803
 		free(ctxt);
304803
 		warn(LOGOPT_NONE, MODPREFIX
304803
 		     "dir map %s, is not a directory", argv[0]);
304803
+		return 1;
304803
 	}
304803
 
304803
 	*context = ctxt;