From 0cb15c169f134026e0dae40994640f76e64f99d9 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 20 Feb 2014 16:55:15 +0100 Subject: [PATCH] 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 Signed-off-by: Gregor Beck Signed-off-by: Michael Adam Reviewed-by: Stefan Metzmacher --- source3/winbindd/winbindd_rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c index 916013efffe..739088f0dcc 100644 --- a/source3/winbindd/winbindd_rpc.c +++ b/source3/winbindd/winbindd_rpc.c @@ -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)) { -- 2.11.4.GIT