nss-pam-ldapd commit: r1728 - in nss-pam-ldapd-0.7: . nslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1728 - in nss-pam-ldapd-0.7: . 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: r1728 - in nss-pam-ldapd-0.7: . nslcd
- Date: Mon, 23 Jul 2012 23:11:30 +0200 (CEST)
Author: arthur
Date: Mon Jul 23 23:11:30 2012
New Revision: 1728
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1728&view=revision
Log:
fix possible NULL pointer dereference (r1589 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 22:16:28 2012 (r1727)
+++ nss-pam-ldapd-0.7/nslcd/pam.c Mon Jul 23 23:11:30 2012 (r1728)
@@ -107,8 +107,11 @@
/* get the username from the uid attribute */
values=myldap_get_values(entry,attmap_passwd_uid);
if ((values==NULL)||(values[0]==NULL))
+ {
log_log(LOG_WARNING,"\"%s\": DN %s is missing a %s attribute",
username,userdn,attmap_passwd_uid);
+ return -1;
+ }
value=values[0];
}
/* check the username */
--
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: r1728 - in nss-pam-ldapd-0.7: . nslcd,
Commits of the nss-pam-ldapd project