summaryrefslogtreecommitdiffstats
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:18:55 +0200
commitd71b1a2c2504ea09bdfa45d2fe30e9ebb425ed84 (patch)
tree60a59658fa269a58b94ebe34211a006cdb23e6de
parent8d368a636f8c043de04f25a3a6ee2b506b736f1d (diff)
downloadsssd-d71b1a2c2504ea09bdfa45d2fe30e9ebb425ed84.tar.gz
sssd-d71b1a2c2504ea09bdfa45d2fe30e9ebb425ed84.tar.xz
sssd-d71b1a2c2504ea09bdfa45d2fe30e9ebb425ed84.zip
ad: destroy ptasks when subdomain is removed
Resolves: https://fedorahosted.org/sssd/ticket/1968
-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);