summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-06-10 13:34:39 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-06-12 21:28:06 -0400
commit2394ec78b31c34f928843a56b9c395380347c418 (patch)
tree00875f4c78c35c464401d454224875af437437eb
parentb78b13ea569fc7fb4ca2c19c39d7cf59e7688f1d (diff)
downloadsssd-2394ec78b31c34f928843a56b9c395380347c418.tar.gz
sssd-2394ec78b31c34f928843a56b9c395380347c418.tar.xz
sssd-2394ec78b31c34f928843a56b9c395380347c418.zip
LDAP: Fix incorrect switch statement in sdap_get_initgr_done()
SDAP_SCHEMA_AD needs to be calling sdap_initgr_rfc2307bis_recv(), not sdap_initgr_nested_recv(). By coincidence both recv functions happened to be identical, but if one or the other changed, this would break unexpectedly.
-rw-r--r--src/providers/ldap/sdap_async_initgroups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index 50347b2bf..ae7e63b87 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -2760,11 +2760,11 @@ static void sdap_get_initgr_done(struct tevent_req *subreq)
break;
case SDAP_SCHEMA_RFC2307BIS:
+ case SDAP_SCHEMA_AD:
ret = sdap_initgr_rfc2307bis_recv(subreq);
break;
case SDAP_SCHEMA_IPA_V1:
- case SDAP_SCHEMA_AD:
ret = sdap_initgr_nested_recv(subreq);
break;