summaryrefslogtreecommitdiffstats
path: root/source3/nsswitch/winbindd_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch/winbindd_cache.c')
-rw-r--r--source3/nsswitch/winbindd_cache.c7
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;