summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_cache.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-12-06 23:14:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:23 -0500
commit155083547af5d50c485d60319f7a329842b83c82 (patch)
treec93d8bd59995310b32699d28d4370bc8c07a7529 /source3/nsswitch/winbindd_cache.c
parent4a1efb1abe1882173d25dbd6c4ebdbf53521b42c (diff)
downloadsamba-155083547af5d50c485d60319f7a329842b83c82.tar.gz
samba-155083547af5d50c485d60319f7a329842b83c82.tar.bz2
samba-155083547af5d50c485d60319f7a329842b83c82.zip
r20057: Attempt to fix connect timeouts when connected on
a network but not one on which any home DC's can be found (hotel network problem). Still testing but this is getting close. Jeremy. (This used to be commit 369c9e4138b93f7cfb6680f0beb541f58554e856)
Diffstat (limited to 'source3/nsswitch/winbindd_cache.c')
-rw-r--r--source3/nsswitch/winbindd_cache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index 799eb5855c..7990068ee4 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -87,10 +87,11 @@ static struct winbind_cache *get_cache(struct winbindd_domain *domain)
struct winbindd_domain *our_domain = domain;
#endif
- /* we have to know what type of domain we are dealing with first */
+ /* We have to know what type of domain we are dealing with first. */
- if ( !domain->initialized )
+ if ( !domain->initialized ) {
init_dc_connection( domain );
+ }
/*
OK. listen up becasue I'm only going to say this once.