summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-10-22 16:15:16 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-10-24 16:26:29 +0200
commit648d3ec563fafea7d7daf88b46e28ce0d43b3935 (patch)
treea083df7261deb6c98c4dd98c1c0e43bbd731b718 /src/providers
parente4a731167c210a6e57e68f451361f270337b1eed (diff)
downloadsssd-648d3ec563fafea7d7daf88b46e28ce0d43b3935.tar.gz
sssd-648d3ec563fafea7d7daf88b46e28ce0d43b3935.tar.xz
sssd-648d3ec563fafea7d7daf88b46e28ce0d43b3935.zip
subdomains: first destroy ptask then remove sdom
be_ptask_destroy was unreachable since sdom is not present in the list of sdap domains any more.
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ipa/ipa_subdomains.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c
index d6cb0c6b6..49ac0b3e7 100644
--- a/src/providers/ipa/ipa_subdomains.c
+++ b/src/providers/ipa/ipa_subdomains.c
@@ -291,12 +291,12 @@ ipa_ad_subdom_remove(struct ipa_subdomains_ctx *ctx,
return;
}
- sdap_domain_remove(iter->ad_id_ctx->sdap_id_ctx->opts, subdom);
- DLIST_REMOVE(ctx->id_ctx->server_mode->trusts, iter);
-
sdom = sdap_domain_get(iter->ad_id_ctx->sdap_id_ctx->opts, subdom);
if (sdom == NULL) return;
be_ptask_destroy(&sdom->enum_task);
+
+ sdap_domain_remove(iter->ad_id_ctx->sdap_id_ctx->opts, subdom);
+ DLIST_REMOVE(ctx->id_ctx->server_mode->trusts, iter);
}
const char *get_flat_name_from_subdomain_name(struct be_ctx *be_ctx,