summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_locator.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/winbindd_locator.c')
-rw-r--r--source3/winbindd/winbindd_locator.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/winbindd/winbindd_locator.c b/source3/winbindd/winbindd_locator.c
index 10a6c5afeb..f154f36c85 100644
--- a/source3/winbindd/winbindd_locator.c
+++ b/source3/winbindd/winbindd_locator.c
@@ -75,14 +75,11 @@ static enum winbindd_result dual_dsgetdcname(struct winbindd_domain *domain,
}
if (info->dc_address) {
- dc = info->dc_address;
- if ((dc[0] == '\\') && (dc[1] == '\\')) {
- dc += 2;
- }
+ dc = strip_hostname(info->dc_address);
}
if ((!dc || !is_ipaddress_v4(dc)) && info->dc_unc) {
- dc = info->dc_unc;
+ dc = strip_hostname(info->dc_unc);
}
if (!dc || !*dc) {