summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-10-22 10:36:21 +0200
committerStefan Metzmacher <metze@samba.org>2008-12-13 11:42:22 +0100
commit588f5aae669910fee6da7f807f330163496b4170 (patch)
tree70511e59e62efe9077a1d4a30b63e80fddfca49c /source3/utils
parent627c844a13caf869ae3c68ec780a8eded7cb181d (diff)
downloadsamba-588f5aae669910fee6da7f807f330163496b4170.tar.gz
samba-588f5aae669910fee6da7f807f330163496b4170.tar.bz2
samba-588f5aae669910fee6da7f807f330163496b4170.zip
s3: correctly detect if the current dc is the closest one
ads->config.tried_closest_dc was never set. metze Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit dfe5b00db35e1e7c7bb3ba36729fc3f97eb48db3)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_ads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index b03fefe14a..27d534665c 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -293,7 +293,7 @@ retry:
tried_closest_dc = true; /* avoid loop */
- if (!ads->config.tried_closest_dc) {
+ if (!ads_closest_dc(ads)) {
namecache_delete(ads->server.realm, 0x1C);
namecache_delete(ads->server.workgroup, 0x1C);