summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-01-17 19:14:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:14 -0500
commite65d9b45986dd659b96ed022a739b08dd45799e6 (patch)
tree10850e3248c26276b6e6cf1055177b0368401080 /source3
parentf3ad8bb00acf680863902721c57091d2bf622b72 (diff)
downloadsamba-e65d9b45986dd659b96ed022a739b08dd45799e6.tar.gz
samba-e65d9b45986dd659b96ed022a739b08dd45799e6.tar.bz2
samba-e65d9b45986dd659b96ed022a739b08dd45799e6.zip
r20861: We only use sitespecific DNS lookups when looking for DCs or KDCs, not
for a PDC. Guenther (This used to be commit 0944c7861004bee2a9d0ac787f022f5bf1d181ac)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/namequery.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 6ebc26b8cb..1f32d3bc37 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -1379,19 +1379,15 @@ BOOL find_master_ip(const char *group, struct in_addr *master_ip)
BOOL get_pdc_ip(const char *domain, struct in_addr *ip)
{
- char *sitename = sitename_fetch();
struct ip_service *ip_list = NULL;
int count = 0;
/* Look up #1B name */
- if (!internal_resolve_name(domain, 0x1b, sitename, &ip_list, &count, lp_name_resolve_order())) {
- SAFE_FREE(sitename);
+ if (!internal_resolve_name(domain, 0x1b, NULL, &ip_list, &count, lp_name_resolve_order())) {
return False;
}
- SAFE_FREE(sitename);
-
/* if we get more than 1 IP back we have to assume it is a
multi-homed PDC and not a mess up */