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

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