summaryrefslogtreecommitdiffstats
path: root/src/responder/common
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2015-05-07 13:01:44 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-10-08 19:56:19 +0200
commitd8125f0e0d38c6939887a0849a44859d6c498c57 (patch)
treec4405c4189161e4a0578ed5b97e79c80411c3150 /src/responder/common
parenta4ed6c3a56b68f0deb27f291df510c3ba735f836 (diff)
downloadsssd-d8125f0e0d38c6939887a0849a44859d6c498c57.tar.gz
sssd-d8125f0e0d38c6939887a0849a44859d6c498c57.tar.xz
sssd-d8125f0e0d38c6939887a0849a44859d6c498c57.zip
cache_req: provide extra flag for oob request
Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/responder/common')
-rw-r--r--src/responder/common/responder_cache_req.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/responder/common/responder_cache_req.c b/src/responder/common/responder_cache_req.c
index d0a90d2c9..fba500147 100644
--- a/src/responder/common/responder_cache_req.c
+++ b/src/responder/common/responder_cache_req.c
@@ -615,6 +615,11 @@ static errno_t cache_req_cache_check(struct tevent_req *req)
if (state->input->type == CACHE_REQ_USER_BY_CERT) {
search_str = state->input->cert;
}
+
+ if (DOM_HAS_VIEWS(state->input->domain)) {
+ extra_flag = EXTRA_INPUT_MAYBE_WITH_VIEW;
+ }
+
switch (ret) {
case EOK:
DEBUG(SSSDBG_TRACE_FUNC, "Cached entry is valid, returning...\n");
@@ -629,7 +634,7 @@ static errno_t cache_req_cache_check(struct tevent_req *req)
state->input->domain, true,
state->input->dp_type,
search_str,
- state->input->id, NULL);
+ state->input->id, extra_flag);
if (subreq == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, "Out of memory sending out-of-band "
"data provider request\n");
@@ -643,10 +648,6 @@ static errno_t cache_req_cache_check(struct tevent_req *req)
/* Cache miss or the cache is expired. We need to get the updated
* information before returning it. */
- if (DOM_HAS_VIEWS(state->input->domain)) {
- extra_flag = EXTRA_INPUT_MAYBE_WITH_VIEW;
- }
-
subreq = sss_dp_get_account_send(state, state->rctx,
state->input->domain, true,
state->input->dp_type,