diff options
author | Michael Adam <obnox@samba.org> | 2014-02-20 16:55:15 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-02-25 09:17:07 +0100 |
commit | 0cb15c169f134026e0dae40994640f76e64f99d9 (patch) | |
tree | dc1a6d53bdd742f95df843b9160f0d5b141da81e /source3/winbindd/winbindd_rpc.c | |
parent | ab7992b5bfa40d9cda66de319ded08276bb54e99 (diff) | |
download | samba-0cb15c169f134026e0dae40994640f76e64f99d9.tar.gz samba-0cb15c169f134026e0dae40994640f76e64f99d9.tar.xz samba-0cb15c169f134026e0dae40994640f76e64f99d9.zip |
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>
Diffstat (limited to 'source3/winbindd/winbindd_rpc.c')
-rw-r--r-- | source3/winbindd/winbindd_rpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c index 916013efff..739088f0dc 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)) { |