diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-26 20:16:26 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-11-25 07:25:45 +0100 |
commit | a5f35ed5cfe50be9cfd9d10812fd7534e1a12840 (patch) | |
tree | 3d63c78a8e4ee7c15747e0df1350a213c8134228 /source3/winbindd/winbindd_msrpc.c | |
parent | 5d070d9f1844ebb120cf254c57f45c3aba9618ef (diff) | |
download | samba-a5f35ed5cfe50be9cfd9d10812fd7534e1a12840.tar.gz |
s3:winbindd: avoid invalid pointer type warnings
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/winbindd/winbindd_msrpc.c')
-rw-r--r-- | source3/winbindd/winbindd_msrpc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_msrpc.c b/source3/winbindd/winbindd_msrpc.c index 8454f93c03f..77e5ffc575d 100644 --- a/source3/winbindd/winbindd_msrpc.c +++ b/source3/winbindd/winbindd_msrpc.c @@ -234,6 +234,7 @@ static NTSTATUS msrpc_name_to_sid(struct winbindd_domain *domain, struct dom_sid *sids = NULL; enum lsa_SidType *types = NULL; char *full_name = NULL; + const char *names[1]; NTSTATUS name_map_status = NT_STATUS_UNSUCCESSFUL; char *mapped_name = NULL; @@ -265,8 +266,10 @@ static NTSTATUS msrpc_name_to_sid(struct winbindd_domain *domain, DEBUG(3,("name_to_sid [rpc] %s for domain %s\n", full_name?full_name:"", domain_name )); + names[0] = full_name; + result = winbindd_lookup_names(mem_ctx, domain, 1, - (const char **)&full_name, NULL, + names, NULL, &sids, &types); if (!NT_STATUS_IS_OK(result)) return result; |