winbindd: Simplify an if-condition
[sfrench/samba-autobuild/.git] / source3 / winbindd / winbindd_cache.c
index b92eba030aee4fd7cd2d31187bd4283d67204923..93501e4073b13ed3dca1c5d38a4dac00246e92e7 100644 (file)
@@ -4805,7 +4805,7 @@ bool wcache_fetch_ndr(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
                goto fail;
        }
 
-       if (!is_domain_offline(domain)) {
+       if (is_domain_online(domain)) {
                uint32_t entry_seqnum, dom_seqnum, last_check;
                uint64_t entry_timeout;