summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-08-29 23:23:42 +0000
committerAndrew Tridgell <tridge@samba.org>2002-08-29 23:23:42 +0000
commitb2ee64955ac51e43d29c26590ea3b977343abdad (patch)
treebd902fbf493015152c4b5592a019c856e0007f7c /source3
parent36df32553379bae515d4cebe4195cc2229660839 (diff)
downloadsamba-b2ee64955ac51e43d29c26590ea3b977343abdad.tar.gz
samba-b2ee64955ac51e43d29c26590ea3b977343abdad.tar.bz2
samba-b2ee64955ac51e43d29c26590ea3b977343abdad.zip
fix connecting to a BDC when the PDC is down but in WINS and no bcast
can be used to find a BDC 2nd try .... (This used to be commit f757223ebe88148b83e1a32b87c014c15c0a68dd)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_cm.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c
index 8c11bd3372..997d5b665f 100644
--- a/source3/nsswitch/winbindd_cm.c
+++ b/source3/nsswitch/winbindd_cm.c
@@ -152,11 +152,9 @@ static BOOL cm_rpc_find_dc(const char *domain, struct in_addr *dc_ip, fstring sr
return True;
}
- if (!get_dc_list(True, domain, &ip_list, &count)) {
- if (!get_dc_list(False, domain, &ip_list, &count)) {
- DEBUG(3, ("Could not look up dc's for domain %s\n", domain));
- return False;
- }
+ if (!get_dc_list(False, domain, &ip_list, &count)) {
+ DEBUG(3, ("Could not look up dc's for domain %s\n", domain));
+ return False;
}
/* Pick a nice close server */