Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nslcd/group.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/nslcd/group.c b/nslcd/group.c
index ac23a77..d8a8d5d 100644
--- a/nslcd/group.c
+++ b/nslcd/group.c
@@ -202,20 +202,9 @@ static SET *getmembers(MYLDAP_ENTRY *entry,MYLDAP_SESSION *session)
if (values!=NULL)
for (i=0;values[i]!=NULL;i++)
{
- /* check the value */
- if (values[i][0]=='\0')
- { /* silently ignore empty values */ }
- else if (strchr(values[i],'=')==NULL)
- {
- /* just add the value, it doesn't look like a DN */
- set_add(set,values[i]);
- }
- else
- {
- /* transform the DN into a uid */
- if (dn2uid(session,values[i],buf,sizeof(buf))!=NULL)
- set_add(set,buf);
- }
+ /* transform the DN into a uid */
+ if (dn2uid(session,values[i],buf,sizeof(buf))!=NULL)
+ set_add(set,buf);
}
/* terminate the list with an empty string */
return set;