diff options
author | Pavel Březina <pbrezina@redhat.com> | 2013-10-24 11:39:36 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-10-25 22:18:55 +0200 |
commit | d71b1a2c2504ea09bdfa45d2fe30e9ebb425ed84 (patch) | |
tree | 60a59658fa269a58b94ebe34211a006cdb23e6de /src | |
parent | 8d368a636f8c043de04f25a3a6ee2b506b736f1d (diff) | |
download | sssd-d71b1a2c2504ea09bdfa45d2fe30e9ebb425ed84.tar.gz sssd-d71b1a2c2504ea09bdfa45d2fe30e9ebb425ed84.tar.xz sssd-d71b1a2c2504ea09bdfa45d2fe30e9ebb425ed84.zip |
ad: destroy ptasks when subdomain is removed
Resolves:
https://fedorahosted.org/sssd/ticket/1968
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ad/ad_subdomains.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c index 88d333ada..8a3a57bd9 100644 --- a/src/providers/ad/ad_subdomains.c +++ b/src/providers/ad/ad_subdomains.c @@ -226,6 +226,9 @@ static errno_t ad_subdomains_refresh(struct ad_subdomains_ctx *ctx, /* Remove the subdomain from the list of LDAP domains */ sdap_domain_remove(ctx->sdap_id_ctx->opts, dom); + be_ptask_destroy(&sdom->enum_task); + be_ptask_destroy(&sdom->cleanup_task); + /* terminate all requests for this subdomain so we can free it */ be_terminate_domain_requests(ctx->be_ctx, dom->name); talloc_zfree(sdom); |