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

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