summaryrefslogtreecommitdiff
path: root/src/providers/ldap/sdap_async_netgroups.c
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2011-09-27 10:19:56 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-09-28 09:06:57 -0400
commitd14332fc3880761ff595104d1d5b0bcf69fbb244 (patch)
tree20862c88fe69b96d4248b9f4bdd5ae82bf8f6831 /src/providers/ldap/sdap_async_netgroups.c
parentea40c46597f124f08802b6a6422394777d9bfb91 (diff)
downloadsssd-d14332fc3880761ff595104d1d5b0bcf69fbb244.tar.gz
sssd-d14332fc3880761ff595104d1d5b0bcf69fbb244.tar.bz2
sssd-d14332fc3880761ff595104d1d5b0bcf69fbb244.zip
Fixed bad logic in processing netgroups in LDAP provider
Diffstat (limited to 'src/providers/ldap/sdap_async_netgroups.c')
-rw-r--r--src/providers/ldap/sdap_async_netgroups.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_netgroups.c b/src/providers/ldap/sdap_async_netgroups.c
index ff776289..6f884bc5 100644
--- a/src/providers/ldap/sdap_async_netgroups.c
+++ b/src/providers/ldap/sdap_async_netgroups.c
@@ -223,7 +223,9 @@ static errno_t update_dn_list(struct dn_item *dn_list, const size_t count,
}
}
- not_resolved = true;
+ if (dn_item->cn == NULL) {
+ not_resolved = true;
+ }
}
*all_resolved = !not_resolved;