diff options
author | Sumit Bose <sbose@redhat.com> | 2013-04-18 12:50:18 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-02 19:33:56 +0200 |
commit | 2648ec1017d37c0840294352b69fc87047da0368 (patch) | |
tree | 6a1ef5c21935274751abe7ade0316d2e9b28cb7f /src | |
parent | 4668b4765530cf37289235e483f301100cc1ae21 (diff) | |
download | sssd-2648ec1017d37c0840294352b69fc87047da0368.tar.gz sssd-2648ec1017d37c0840294352b69fc87047da0368.tar.xz sssd-2648ec1017d37c0840294352b69fc87047da0368.zip |
responder_get_domain: do not return disabled domains
Recent refactoring introduced to concept of disabled domains, i.e.
domains which does not exists anymore. responder_get_domain() should not
return disabled domains.
Diffstat (limited to 'src')
-rw-r--r-- | src/responder/common/responder_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/responder/common/responder_common.c b/src/responder/common/responder_common.c index 329259190..480b0461a 100644 --- a/src/responder/common/responder_common.c +++ b/src/responder/common/responder_common.c @@ -905,6 +905,10 @@ responder_get_domain(struct resp_ctx *rctx, const char *name) struct sss_domain_info *ret_dom = NULL; for (dom = rctx->domains; dom; dom = get_next_domain(dom, true)) { + if (dom->disabled) { + continue; + } + if (!IS_SUBDOMAIN(dom)) { time_diff = now - dom->subdomains_last_checked.tv_sec; } |