summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2008-04-06 20:31:59 +0000
committerArthur de Jong <arthur@arthurdejong.org>2008-04-06 20:31:59 +0000
commitd8ce6a570b3ff323bb26f480c1dcc65b4baaafb0 (patch)
tree324a80586d51a3120d7f2908ccb9125ce5d89138
parent4b0179c29b7d37b9a6ab016260ccaf74a55d3e93 (diff)
properly handle the case where dn2uid() couldn't do a DN->uid lookup
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@672 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--nslcd/group.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nslcd/group.c b/nslcd/group.c
index 3507309..a6590f8 100644
--- a/nslcd/group.c
+++ b/nslcd/group.c
@@ -244,8 +244,8 @@ static char *getmembers(MYLDAP_ENTRY *entry,MYLDAP_SESSION *session)
else
{
/* transform the DN into a uid */
- dn2uid(session,values[i],buf+bufsz,bufalloc-bufsz);
- bufsz+=strlen(buf+bufsz)+1;
+ if (dn2uid(session,values[i],buf+bufsz,bufalloc-bufsz)!=NULL)
+ bufsz+=strlen(buf+bufsz)+1;
}
}
/* if the buffer does not contain any data, return NULL */