From 8d0f535e329c4ea7bc771d4cc5771387cbd622e9 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Mon, 29 Jun 2009 19:16:11 +0000 Subject: fix off by one error in the maximum number of gidNumber attributes in an LDAP group entry git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@957 ef36b2f9-881f-0410-afb5-c4e39611909c --- nslcd/group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nslcd') diff --git a/nslcd/group.c b/nslcd/group.c index 1926a33..f457cbb 100644 --- a/nslcd/group.c +++ b/nslcd/group.c @@ -259,7 +259,7 @@ static int write_group(TFILE *fp,MYLDAP_ENTRY *entry,const char *reqname, myldap_get_dn(entry),attmap_group_gidNumber); return 0; } - for (numgids=0;(gidvalues[numgids]!=NULL)&&(numgids<=MAXGIDS_PER_ENTRY);numgids++) + for (numgids=0;(gidvalues[numgids]!=NULL)&&(numgids