lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1590 - nss-pam-ldapd/nslcd

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

nss-pam-ldapd commit: r1590 - nss-pam-ldapd/nslcd



Author: jhrozek
Date: Mon Jan  9 13:04:02 2012
New Revision: 1590
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1590&view=revision

Log:
Do not leak memory if myldap_escape() fails

Modified:
   nss-pam-ldapd/nslcd/pam.c

Modified: nss-pam-ldapd/nslcd/pam.c
==============================================================================
--- nss-pam-ldapd/nslcd/pam.c   Mon Jan  9 12:54:36 2012        (r1589)
+++ nss-pam-ldapd/nslcd/pam.c   Mon Jan  9 13:04:02 2012        (r1590)
@@ -337,6 +337,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/