diff options
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_cache.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index f65705e0fb..282a37230b 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -296,13 +296,14 @@ static struct cache_entry *wcache_fetch(struct winbind_cache *cache, if (centry_expired(domain, centry)) { extern BOOL opt_dual_daemon; + if (opt_dual_daemon) { extern BOOL backgroud_process; backgroud_process = True; } else { - centry_free(centry); - return NULL; - } + centry_free(centry); + return NULL; + } } return centry; |