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

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