mirror of
https://github.com/samba-team/samba.git
synced 2025-06-18 19:17:08 +03:00
rpc: fix name-normalization in rpc_sid_to_name()
Hand the *input* name as input into the normalize call, not the (potentially uninitialized...) *output* name... Bug: https://bugzilla.samba.org/show_bug.cgi?id=10463 Change-Id: I4f3fc25882c22d96329e252d0a53bbe13d533472 Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Signed-off-by: Gregor Beck <gbeck@sernet.de> Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
ab7992b5bf
commit
0cb15c169f
@ -362,7 +362,7 @@ NTSTATUS rpc_sid_to_name(TALLOC_CTX *mem_ctx,
|
||||
|
||||
map_status = normalize_name_map(mem_ctx,
|
||||
domain,
|
||||
*pname,
|
||||
names[0],
|
||||
&mapped_name);
|
||||
if (NT_STATUS_IS_OK(map_status) ||
|
||||
NT_STATUS_EQUAL(map_status, NT_STATUS_FILE_RENAMED)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user