summaryrefslogtreecommitdiff
path: root/source3/libsmb/trusts_util.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-06 00:13:56 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-06 00:13:56 +0000
commiteb1aa6a2cc0331cbbbc5ea466e5695e4df39e6ee (patch)
treef469a55452e23482ec6c14a40c1fe8dced40b370 /source3/libsmb/trusts_util.c
parenta9598d2e88fcd5384640baa963000e4f02679985 (diff)
downloadsamba-eb1aa6a2cc0331cbbbc5ea466e5695e4df39e6ee.tar.gz
samba-eb1aa6a2cc0331cbbbc5ea466e5695e4df39e6ee.tar.bz2
samba-eb1aa6a2cc0331cbbbc5ea466e5695e4df39e6ee.zip
(merge from 3.0)
Change our Domain controller lookup routines to more carefully seperate DNS names (realms) from NetBIOS domain names. Until now, we would experience delays as we broadcast lookups for DNS names onto the local network segments. Now if DNS comes back negative, we fall straight back to looking up the short name. Andrew Bartlett (This used to be commit 4c3bd0a99e464198d243da302ff1868189b4dcff)
Diffstat (limited to 'source3/libsmb/trusts_util.c')
-rw-r--r--source3/libsmb/trusts_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/trusts_util.c b/source3/libsmb/trusts_util.c
index 7c1000b9a5..b420e4fa08 100644
--- a/source3/libsmb/trusts_util.c
+++ b/source3/libsmb/trusts_util.c
@@ -144,7 +144,7 @@ BOOL enumerate_domain_trusts( TALLOC_CTX *mem_ctx, const char *domain,
/* lookup a DC first */
- if ( !get_dc_name(domain, dc_name, &dc_ip) ) {
+ if ( !get_dc_name(domain, NULL, dc_name, &dc_ip) ) {
DEBUG(3,("enumerate_domain_trusts: can't locate a DC for domain %s\n",
domain));
return False;