diff options
author | Pavel Březina <pbrezina@redhat.com> | 2013-10-22 16:15:16 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-10-24 16:29:47 +0200 |
commit | 528b513fce820272608155ae7e8d00ef5288301c (patch) | |
tree | 958ad51d5b904f6f44809176458b7cbaad129154 /src/providers | |
parent | 8a5b0728ed6ed5deb6ad53cd4ccb23121babfd0c (diff) | |
download | sssd-528b513fce820272608155ae7e8d00ef5288301c.tar.gz sssd-528b513fce820272608155ae7e8d00ef5288301c.tar.xz sssd-528b513fce820272608155ae7e8d00ef5288301c.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.c | 6 |
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, |