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.7.orig/CHANGELOG
+++ autofs-5.1.7/CHANGELOG
@@ -106,6 +106,7 @@
 - fix missing unlock in sasl_do_kinit_ext_cc().
 - fix parse module instance mutex naming.
 - serialise lookup module open and reinit.
+- coverity fix for invalid access.
 
 25/01/2021 autofs-5.1.7
 - make bind mounts propagation slave by default.
--- autofs-5.1.7.orig/modules/parse_amd.c
+++ autofs-5.1.7/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;
 		}
 	}