|
|
bb7cd1 |
From 3d55506f2e6584d412ca07f2d0d77375aae48ba9 Mon Sep 17 00:00:00 2001
|
|
|
bb7cd1 |
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
|
|
|
bb7cd1 |
Date: Mon, 24 Apr 2017 21:04:58 +0200
|
|
|
bb7cd1 |
Subject: [PATCH 108/110] CACHE_REQ_DOMAIN: Add some comments to
|
|
|
bb7cd1 |
cache_req_domain_new_list_from_string_list()
|
|
|
bb7cd1 |
MIME-Version: 1.0
|
|
|
bb7cd1 |
Content-Type: text/plain; charset=UTF-8
|
|
|
bb7cd1 |
Content-Transfer-Encoding: 8bit
|
|
|
bb7cd1 |
|
|
|
bb7cd1 |
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
|
|
|
bb7cd1 |
|
|
|
bb7cd1 |
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
|
|
|
bb7cd1 |
(cherry picked from commit f9bac02756aa05cc9c6ac07ae581dba67240c1a4)
|
|
|
bb7cd1 |
---
|
|
|
bb7cd1 |
src/responder/common/cache_req/cache_req_domain.c | 4 ++++
|
|
|
bb7cd1 |
1 file changed, 4 insertions(+)
|
|
|
bb7cd1 |
|
|
|
bb7cd1 |
diff --git a/src/responder/common/cache_req/cache_req_domain.c b/src/responder/common/cache_req/cache_req_domain.c
|
|
|
bb7cd1 |
index bfdd2b7f640178f6d0a0d92f2fed329c856b478c..6d37db0f109d5343eb6d7f4272bea522d4c34cf7 100644
|
|
|
bb7cd1 |
--- a/src/responder/common/cache_req/cache_req_domain.c
|
|
|
bb7cd1 |
+++ b/src/responder/common/cache_req/cache_req_domain.c
|
|
|
bb7cd1 |
@@ -116,6 +116,8 @@ cache_req_domain_new_list_from_string_list(TALLOC_CTX *mem_ctx,
|
|
|
bb7cd1 |
bool enforce_non_fqnames = false;
|
|
|
bb7cd1 |
errno_t ret;
|
|
|
bb7cd1 |
|
|
|
bb7cd1 |
+ /* Firstly, in case a domains' resolution order is passed ... iterate over
|
|
|
bb7cd1 |
+ * the list adding its domains to the flatten cache req domains' list */
|
|
|
bb7cd1 |
if (resolution_order != NULL) {
|
|
|
bb7cd1 |
enforce_non_fqnames = true;
|
|
|
bb7cd1 |
for (i = 0; resolution_order[i] != NULL; i++) {
|
|
|
bb7cd1 |
@@ -141,6 +143,8 @@ cache_req_domain_new_list_from_string_list(TALLOC_CTX *mem_ctx,
|
|
|
bb7cd1 |
}
|
|
|
bb7cd1 |
}
|
|
|
bb7cd1 |
|
|
|
bb7cd1 |
+ /* Then iterate through all the other domains (and subdomains) and add them
|
|
|
bb7cd1 |
+ * to the flatten cache req domains' list */
|
|
|
bb7cd1 |
for (dom = domains; dom; dom = get_next_domain(dom, flag)) {
|
|
|
bb7cd1 |
if (string_in_list(dom->name, resolution_order, false)) {
|
|
|
bb7cd1 |
continue;
|
|
|
bb7cd1 |
--
|
|
|
bb7cd1 |
2.9.3
|
|
|
bb7cd1 |
|