diff options
author | Matthieu Patou <mat@matws.net> | 2011-09-26 18:54:04 -0400 |
---|---|---|
committer | Matthieu Patou <mat@matws.net> | 2013-08-06 21:21:47 -0700 |
commit | 927a1030d78c25dbc43b6470f9ffe8b5fe664835 (patch) | |
tree | fd0994dafe1efcc48919ec505a7066d50d4a6846 | |
parent | 530098440ee34b6fc23c2786b2df411978d15c97 (diff) | |
download | samba-927a1030d78c25dbc43b6470f9ffe8b5fe664835.tar.gz samba-927a1030d78c25dbc43b6470f9ffe8b5fe664835.tar.xz 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>
-rw-r--r-- | source4/rpc_server/netlogon/dcerpc_netlogon.c | 4 |
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 5cc3b34dbf3..d9161078976 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); |