lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1729 - in nss-pam-ldapd-0.7: . nslcd

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

nss-pam-ldapd commit: r1729 - in nss-pam-ldapd-0.7: . nslcd



Author: arthur
Date: Mon Jul 23 23:13:27 2012
New Revision: 1729
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1729&view=revision

Log:
do not leak memory if myldap_escape() fails (r1590 from 0.8)

Modified:
   nss-pam-ldapd-0.7/   (props changed)
   nss-pam-ldapd-0.7/nslcd/pam.c

Modified: nss-pam-ldapd-0.7/nslcd/pam.c
==============================================================================
--- nss-pam-ldapd-0.7/nslcd/pam.c       Mon Jul 23 23:11:30 2012        (r1728)
+++ nss-pam-ldapd-0.7/nslcd/pam.c       Mon Jul 23 23:13:27 2012        (r1729)
@@ -198,6 +198,7 @@
   if(myldap_escape(value,escaped_value,sz))
   {
     log_log(LOG_CRIT,"autzsearch_var_add(): myldap_escape() failed to fit in 
buffer");
+    free(escaped_value);
     return;
   }
   /* add to dict */
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/