Blame SOURCES/autofs-5.1.4-fix-use-after-free-in-parse_ldap_config.patch

135b98
autofs-5.1.4 - fix use after free in parse_ldap_config()
135b98
135b98
From: Ian Kent <raven@themaw.net>
135b98
135b98
Commit a4a2af5f30 (covarity fixes) incorrecly frees local variable
135b98
authtype after assigning it to a lookup context structure member.
135b98
135b98
Signed-off-by: Ian Kent <raven@themaw.net>
135b98
---
135b98
 CHANGELOG             |    1 +
135b98
 modules/lookup_ldap.c |    2 --
135b98
 2 files changed, 1 insertion(+), 2 deletions(-)
135b98
135b98
--- autofs-5.1.4.orig/CHANGELOG
135b98
+++ autofs-5.1.4/CHANGELOG
135b98
@@ -33,6 +33,7 @@ xx/xx/2018 autofs-5.1.5
135b98
 - set bind mount as propagation slave.
135b98
 - add master map pseudo options for mount propagation.
135b98
 - fix age setting at startup.
135b98
+- fix use after free in parse_ldap_config().
135b98
 
135b98
 19/12/2017 autofs-5.1.4
135b98
 - fix spec file url.
135b98
--- autofs-5.1.4.orig/modules/lookup_ldap.c
135b98
+++ autofs-5.1.4/modules/lookup_ldap.c
135b98
@@ -1383,8 +1383,6 @@ auth_fail:
135b98
 		      user, secret ? "specified" : "unspecified",
135b98
 		      client_princ, client_cc);
135b98
 	}
135b98
-	if (authtype)
135b98
-		free(authtype);
135b98
 out:
135b98
 	xmlFreeDoc(doc);
135b98
 	if (auth_conf)