lists.arthurdejong.org
RSS feed

nss-pam-ldapd branch master updated. 0.9.12-18-g9a353ac

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd branch master updated. 0.9.12-18-g9a353ac



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".

The branch, master has been updated
       via  9a353ac7f84a2b6485dd1bb1b272cb8405bd4e9e (commit)
      from  91bb8c995f977d289077e6a6dceff74f4aed60b6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/nss-pam-ldapd/commit/?id=9a353ac7f84a2b6485dd1bb1b272cb8405bd4e9e

commit 9a353ac7f84a2b6485dd1bb1b272cb8405bd4e9e
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Tue Aug 27 21:39:21 2024 +0200

    Fix memory leak in config parsing
    
    This fixes a one-time memory leak in reading the base configuration
    option.

diff --git a/nslcd/cfg.c b/nslcd/cfg.c
index 86917d5..6e56161 100644
--- a/nslcd/cfg.c
+++ b/nslcd/cfg.c
@@ -685,7 +685,10 @@ static void handle_base(const char *filename, int lnr,
 #endif /* not HAVE_LDAP_DOMAIN2DN */
   }
   if (strcasecmp(value, "\"\"") == 0)
+  {
+    free(value);
     value = "";
+  }
   /* find the spot in the list of bases */
   for (i = 0; i < NSS_LDAP_CONFIG_MAX_BASES; i++)
     if (bases[i] == NULL)

-----------------------------------------------------------------------

Summary of changes:
 nslcd/cfg.c | 3 +++
 1 file changed, 3 insertions(+)


hooks/post-receive
-- 
nss-pam-ldapd