summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */