From 927a1030d78c25dbc43b6470f9ffe8b5fe664835 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Mon, 26 Sep 2011 18:54:04 -0400 Subject: s4-netlogon: do not add \\ it has already be done in the fill_netlogon_samlogon_response Reviewed-By: Andrew Bartlett --- source4/rpc_server/netlogon/dcerpc_netlogon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4') 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); -- cgit