summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-11-09 02:36:47 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-11-09 02:36:47 +0000
commit8ce292d96f4841861ee8caf60278cafdfd6b9f55 (patch)
treed43edc8a1178df7d7ddcf0f73bff41b77725f671
parent5fabbb0573095d05695ab4904683f6939d6d9e37 (diff)
downloadsamba-8ce292d96f4841861ee8caf60278cafdfd6b9f55.tar.gz
samba-8ce292d96f4841861ee8caf60278cafdfd6b9f55.tar.bz2
samba-8ce292d96f4841861ee8caf60278cafdfd6b9f55.zip
Fix bug where not specifying '-S PDC' in 'net join' would cause it to attempt
to contact a random IP address. Andrew Bartlett (This used to be commit e6837a85605f258da1fa9ac7ad329bc62392f29a)
-rw-r--r--source3/utils/net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index 607e47cf71..4b1a52992e 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -192,6 +192,7 @@ BOOL net_find_server(unsigned flags, struct in_addr *server_ip, char **server_na
return False;
*server_name = strdup(dc_name);
+ *server_ip = pdc_ip;
}
} else if (flags & NET_FLAGS_DMB) {