Blob Blame History Raw
autofs-5.1.8 - coverity fix for invalid access

From: Ian Kent <raven@themaw.net>

Fix invalid access in modules/parse_amd.c:do_host_mount().

Signed-off-by: Ian Kent <raven@themaw.net>
---
 CHANGELOG           |    1 +
 modules/parse_amd.c |    1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

--- autofs-5.1.4.orig/CHANGELOG
+++ autofs-5.1.4/CHANGELOG
@@ -98,6 +98,7 @@
 - fix invalid tsv access.
 - fix parse module instance mutex naming.
 - serialise lookup module open and reinit.
+- coverity fix for invalid access.
 
 xx/xx/2018 autofs-5.1.5
 - fix flag file permission.
--- autofs-5.1.4.orig/modules/parse_amd.c
+++ autofs-5.1.4/modules/parse_amd.c
@@ -1366,7 +1366,6 @@ static int do_host_mount(struct autofs_p
 		if (!instance) {
 			error(ap->logopt, MODPREFIX
 			     "failed to create source instance for hosts map");
-			close_lookup(lookup);
 			goto out;
 		}
 	}