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
- 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: r1590 - nss-pam-ldapd/nslcd
- Date: Mon, 9 Jan 2012 13:04:04 +0100 (CET)
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/
- nss-pam-ldapd commit: r1590 - nss-pam-ldapd/nslcd,
Commits of the nss-pam-ldapd project