1 autofs-5.0.4 - fix incorrect dclist free
3 From: Ian Kent <raven@themaw.net>
5 We incorrectly try to free dclist in modules/lookup_ldap.c:find_server().
8 modules/lookup_ldap.c | 10 ++++++++--
9 1 files changed, 8 insertions(+), 2 deletions(-)
12 diff --git a/modules/lookup_ldap.c b/modules/lookup_ldap.c
13 index f6b3f42..8f352d6 100644
14 --- a/modules/lookup_ldap.c
15 +++ b/modules/lookup_ldap.c
16 @@ -688,6 +688,10 @@ static LDAP *find_server(unsigned logopt, struct lookup_context *ctxt)
21 + free_dclist(dclist);
27 @@ -700,8 +704,10 @@ static LDAP *find_server(unsigned logopt, struct lookup_context *ctxt)
31 - free_dclist(dclist);
34 + free_dclist(dclist);