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

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