Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2009-06-29 21:16:11 +0200
committerArthur de Jong <arthur@arthurdejong.org>2009-06-29 21:16:11 +0200
commit8d0f535e329c4ea7bc771d4cc5771387cbd622e9 (patch)
treed5f842b006e8fefb7dcd972cbf929adf16781610 /nslcd
parentda82572d4d5b225b4bb60fd7766cf78e00d3b14e (diff)
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
Diffstat (limited to 'nslcd')
-rw-r--r--nslcd/group.c2
1 files changed, 1 insertions, 1 deletions
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<MAXGIDS_PER_ENTRY);numgids++)
{
gids[numgids]=(gid_t)strtol(gidvalues[numgids],&tmp,0);
if ((*(gidvalues[numgids])=='\0')||(*tmp!='\0'))