nss-pam-ldapd commit: r1933 - in nss-pam-ldapd-0.8: . nslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1933 - in nss-pam-ldapd-0.8: . 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: r1933 - in nss-pam-ldapd-0.8: . nslcd
- Date: Sat, 23 Feb 2013 22:15:55 +0100 (CET)
Author: arthur
Date: Sat Feb 23 22:15:54 2013
New Revision: 1933
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1933&view=revision
Log:
fix memory leak in myldap_get_values_len() when using ranged attributes (very
unlikely to occur) (r1910 from 0.9)
Modified:
nss-pam-ldapd-0.8/ (props changed)
nss-pam-ldapd-0.8/nslcd/myldap.c
Modified: nss-pam-ldapd-0.8/nslcd/myldap.c
==============================================================================
--- nss-pam-ldapd-0.8/nslcd/myldap.c Sat Feb 23 22:11:13 2013 (r1932)
+++ nss-pam-ldapd-0.8/nslcd/myldap.c Sat Feb 23 22:15:54 2013 (r1933)
@@ -1634,6 +1634,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: r1933 - in nss-pam-ldapd-0.8: . nslcd,
Commits of the nss-pam-ldapd project