Blame SOURCES/autofs-5.1.8-coverity-fix-for-invalid-access.patch

5a83b1
autofs-5.1.8 - coverity fix for invalid access
5a83b1
5a83b1
From: Ian Kent <raven@themaw.net>
5a83b1
5a83b1
Fix invalid access in modules/parse_amd.c:do_host_mount().
5a83b1
5a83b1
Signed-off-by: Ian Kent <raven@themaw.net>
5a83b1
---
5a83b1
 CHANGELOG           |    1 +
5a83b1
 modules/parse_amd.c |    1 -
5a83b1
 2 files changed, 1 insertion(+), 1 deletion(-)
5a83b1
5a83b1
--- autofs-5.1.7.orig/CHANGELOG
5a83b1
+++ autofs-5.1.7/CHANGELOG
5a83b1
@@ -106,6 +106,7 @@
5a83b1
 - fix missing unlock in sasl_do_kinit_ext_cc().
5a83b1
 - fix parse module instance mutex naming.
5a83b1
 - serialise lookup module open and reinit.
5a83b1
+- coverity fix for invalid access.
5a83b1
 
5a83b1
 25/01/2021 autofs-5.1.7
5a83b1
 - make bind mounts propagation slave by default.
5a83b1
--- autofs-5.1.7.orig/modules/parse_amd.c
5a83b1
+++ autofs-5.1.7/modules/parse_amd.c
5a83b1
@@ -1366,7 +1366,6 @@ static int do_host_mount(struct autofs_p
5a83b1
 		if (!instance) {
5a83b1
 			error(ap->logopt, MODPREFIX
5a83b1
 			     "failed to create source instance for hosts map");
5a83b1
-			close_lookup(lookup);
5a83b1
 			goto out;
5a83b1
 		}
5a83b1
 	}