summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_cache.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
index b7b5e6d7ed..a9690aea1c 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -2715,15 +2715,16 @@ static NTSTATUS trusted_domains(struct winbindd_domain *domain,
old_status = domain->online;
trusts->count = 0;
trusts->array = NULL;
- if (domain->online) {
- goto do_query;
- }
cache = get_cache(domain);
if (!cache || !cache->tdb) {
goto do_query;
}
+ if (domain->online) {
+ goto do_query;
+ }
+
retval = wcache_tdc_fetch_list(&dom_list, &num_domains);
if (!retval || !num_domains || !dom_list) {
TALLOC_FREE(dom_list);