summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-09-26 18:54:04 -0400
committerMatthieu Patou <mat@matws.net>2013-08-06 21:21:47 -0700
commit927a1030d78c25dbc43b6470f9ffe8b5fe664835 (patch)
treefd0994dafe1efcc48919ec505a7066d50d4a6846 /source4
parent530098440ee34b6fc23c2786b2df411978d15c97 (diff)
downloadsamba-927a1030d78c25dbc43b6470f9ffe8b5fe664835.tar.gz
samba-927a1030d78c25dbc43b6470f9ffe8b5fe664835.tar.bz2
samba-927a1030d78c25dbc43b6470f9ffe8b5fe664835.zip
s4-netlogon: do not add \\ it has already be done in the fill_netlogon_samlogon_response
Reviewed-By: Andrew Bartlett <abarlett@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/netlogon/dcerpc_netlogon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index 5cc3b34dbf..d916107897 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -1840,7 +1840,9 @@ static WERROR dcesrv_netr_DsRGetDCNameEx2(struct dcesrv_call_state *dce_call,
info = talloc(mem_ctx, struct netr_DsRGetDCNameInfo);
W_ERROR_HAVE_NO_MEMORY(info);
- info->dc_unc = talloc_asprintf(mem_ctx, "\\\\%s", dc_name);
+ info->dc_unc = talloc_asprintf(mem_ctx, "%s%s",
+ dc_name[0] == '\\'? "\\\\":"",
+ talloc_strdup(mem_ctx, dc_name));
W_ERROR_HAVE_NO_MEMORY(info->dc_unc);
load_interface_list(mem_ctx, lp_ctx, &ifaces);