lists.arthurdejong.org
RSS feed

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



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/