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

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