summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_cm.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-05-08 14:23:20 +0200
committerGünther Deschner <gd@samba.org>2008-05-09 14:59:19 +0200
commitf11acf358225ecf10a8af2a12e304019adc6ee4f (patch)
treeb0f54075aa5b223f870074d6ab85960c9bffeeeb /source3/winbindd/winbindd_cm.c
parente556dfbb932759f7159735cc7559bd6e89ec7d12 (diff)
downloadsamba-f11acf358225ecf10a8af2a12e304019adc6ee4f.tar.gz
samba-f11acf358225ecf10a8af2a12e304019adc6ee4f.tar.bz2
samba-f11acf358225ecf10a8af2a12e304019adc6ee4f.zip
Use strip_hostname after dsgetdcname/getdcname calls.
Guenther (This used to be commit 82cbb3269b2e764c9c2a2fbcbe9c29feae07fb62)
Diffstat (limited to 'source3/winbindd/winbindd_cm.c')
-rw-r--r--source3/winbindd/winbindd_cm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index 0b0de5ad4f..377b1b2d21 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -655,13 +655,7 @@ static bool get_dc_name_via_netlogon(struct winbindd_domain *domain,
}
/* rpccli_netr_GetAnyDCName gives us a name with \\ */
- p = tmp;
- if (*p == '\\') {
- p+=1;
- }
- if (*p == '\\') {
- p+=1;
- }
+ p = strip_hostname(tmp);
fstrcpy(dcname, p);