summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-10-24 11:39:36 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-10-25 22:12:19 +0200
commitda34cf4ca360922f1bb9013d58108cf194f4286e (patch)
treef80c6776ba1f271daad45ea4bea429e233b24d41 /src
parent44e8e9660ff4db5873b0a7a3cff24ff78ff929e1 (diff)
downloadsssd-da34cf4ca360922f1bb9013d58108cf194f4286e.tar.gz
sssd-da34cf4ca360922f1bb9013d58108cf194f4286e.tar.xz
sssd-da34cf4ca360922f1bb9013d58108cf194f4286e.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.c3
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);