summaryrefslogtreecommitdiffstats
path: root/src/responder/common/cache_req/cache_req_domain.h
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2017-10-20 09:26:43 +0200
committerJakub Hrozek <jhrozek@redhat.com>2017-10-26 10:24:44 +0200
commit0f44eefe2ce75a0814c8688495477f6c57f3d39a (patch)
tree783eb4249faad3e87b1fe80f266c4f5183c9ebb8 /src/responder/common/cache_req/cache_req_domain.h
parent6c802b2009c1b6dd0c3306ba97056e64acc0ec9e (diff)
downloadsssd-0f44eefe2ce75a0814c8688495477f6c57f3d39a.tar.gz
sssd-0f44eefe2ce75a0814c8688495477f6c57f3d39a.tar.xz
sssd-0f44eefe2ce75a0814c8688495477f6c57f3d39a.zip
CACHE_REQ: Copy the cr_domain list for each request
Let's copy the cr_domain list for each request as this list may be free'd due to a refresh domains request. Resolves: https://pagure.io/SSSD/sssd/issue/3551 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/responder/common/cache_req/cache_req_domain.h')
-rw-r--r--src/responder/common/cache_req/cache_req_domain.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/responder/common/cache_req/cache_req_domain.h b/src/responder/common/cache_req/cache_req_domain.h
index 3780a5d8d..ebdc71dd6 100644
--- a/src/responder/common/cache_req/cache_req_domain.h
+++ b/src/responder/common/cache_req/cache_req_domain.h
@@ -50,6 +50,11 @@ cache_req_domain_new_list_from_domain_resolution_order(
const char *domain_resolution_order,
struct cache_req_domain **_cr_domains);
+errno_t
+cache_req_domain_copy_cr_domains(TALLOC_CTX *mem_ctx,
+ struct cache_req_domain *src,
+ struct cache_req_domain **_dest);
+
void cache_req_domain_list_zfree(struct cache_req_domain **cr_domains);