diff options
author | Günther Deschner <gd@samba.org> | 2008-05-08 14:23:20 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-05-09 14:59:19 +0200 |
commit | 82cbb3269b2e764c9c2a2fbcbe9c29feae07fb62 (patch) | |
tree | d0c862ceec100989e63a06570fdff6ded7d836c0 /source/winbindd/winbindd_locator.c | |
parent | dbf96120d8b33e592bfd3e9df1777f1670e218be (diff) | |
download | samba-82cbb3269b2e764c9c2a2fbcbe9c29feae07fb62.tar.gz samba-82cbb3269b2e764c9c2a2fbcbe9c29feae07fb62.tar.xz samba-82cbb3269b2e764c9c2a2fbcbe9c29feae07fb62.zip |
Use strip_hostname after dsgetdcname/getdcname calls.
Guenther
Diffstat (limited to 'source/winbindd/winbindd_locator.c')
-rw-r--r-- | source/winbindd/winbindd_locator.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/winbindd/winbindd_locator.c b/source/winbindd/winbindd_locator.c index 10a6c5afeb8..f154f36c851 100644 --- a/source/winbindd/winbindd_locator.c +++ b/source/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) { |