From da82572d4d5b225b4bb60fd7766cf78e00d3b14e Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Mon, 29 Jun 2009 19:10:00 +0000 Subject: fix off by one error in the maximum number of uidNumber attributes in an LDAP entry (thanks to David Binderman for finding this) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@956 ef36b2f9-881f-0410-afb5-c4e39611909c --- nslcd/passwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nslcd') diff --git a/nslcd/passwd.c b/nslcd/passwd.c index 3896aea..5ee0921 100644 --- a/nslcd/passwd.c +++ b/nslcd/passwd.c @@ -341,7 +341,7 @@ static int write_passwd(TFILE *fp,MYLDAP_ENTRY *entry,const char *requser, myldap_get_dn(entry),attmap_passwd_uidNumber); return 0; } - for (numuids=0;(numuids<=MAXUIDS_PER_ENTRY)&&(tmpvalues[numuids]!=NULL);numuids++) + for (numuids=0;(numuids