nss-pam-ldapd commit: r1910 - nss-pam-ldapd/nslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1910 - nss-pam-ldapd/nslcd
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1910 - nss-pam-ldapd/nslcd
- Date: Sat, 12 Jan 2013 23:27:07 +0100 (CET)
Author: arthur
Date: Sat Jan 12 23:27:06 2013
New Revision: 1910
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1910&view=revision
Log:
fix memory leak in myldap_get_values_len() when using ranged attributes (very
unlikely to occur)
Modified:
nss-pam-ldapd/nslcd/myldap.c
Modified: nss-pam-ldapd/nslcd/myldap.c
==============================================================================
--- nss-pam-ldapd/nslcd/myldap.c Sat Jan 12 23:24:06 2013 (r1909)
+++ nss-pam-ldapd/nslcd/myldap.c Sat Jan 12 23:27:06 2013 (r1910)
@@ -1648,6 +1648,12 @@
if (set == NULL)
return NULL;
values = set_tolist(set);
+ set_free(set);
+ if (values == NULL)
+ {
+ log_log(LOG_CRIT, "myldap_get_values_len(): malloc() failed to
allocate memory");
+ return NULL;
+ }
}
else
{
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/
- nss-pam-ldapd commit: r1910 - nss-pam-ldapd/nslcd,
Commits of the nss-pam-ldapd project