mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Fix a mismatched interface where we were using
uint32 instead of enum lsa_SidType. Jeremy. (This used to be commit 2df8252ff76406bfe57cd76e9927b5056e89e6ae)
This commit is contained in:
parent
4da94864dd
commit
922db25272
@ -139,7 +139,7 @@ static NTSTATUS rpccli_lsa_lookup_sids_noalloc(struct rpc_pipe_client *cli,
|
||||
const DOM_SID *sids,
|
||||
char **domains,
|
||||
char **names,
|
||||
uint32 *types)
|
||||
enum lsa_SidType *types)
|
||||
{
|
||||
prs_struct qbuf, rbuf;
|
||||
LSA_Q_LOOKUP_SIDS q;
|
||||
@ -252,7 +252,7 @@ NTSTATUS rpccli_lsa_lookup_sids(struct rpc_pipe_client *cli,
|
||||
const DOM_SID *sids,
|
||||
char ***domains,
|
||||
char ***names,
|
||||
uint32 **types)
|
||||
enum lsa_SidType **types)
|
||||
{
|
||||
NTSTATUS result = NT_STATUS_OK;
|
||||
int sids_left = 0;
|
||||
@ -260,7 +260,7 @@ NTSTATUS rpccli_lsa_lookup_sids(struct rpc_pipe_client *cli,
|
||||
const DOM_SID *hunk_sids = sids;
|
||||
char **hunk_domains = NULL;
|
||||
char **hunk_names = NULL;
|
||||
uint32 *hunk_types = NULL;
|
||||
enum lsa_SidType *hunk_types = NULL;
|
||||
|
||||
if (num_sids) {
|
||||
if (!((*domains) = TALLOC_ARRAY(mem_ctx, char *, num_sids))) {
|
||||
@ -359,7 +359,7 @@ NTSTATUS rpccli_lsa_lookup_names(struct rpc_pipe_client *cli,
|
||||
const char ***dom_names,
|
||||
int level,
|
||||
DOM_SID **sids,
|
||||
uint32 **types)
|
||||
enum lsa_SidType **types)
|
||||
{
|
||||
prs_struct qbuf, rbuf;
|
||||
LSA_Q_LOOKUP_NAMES q;
|
||||
@ -407,7 +407,7 @@ NTSTATUS rpccli_lsa_lookup_names(struct rpc_pipe_client *cli,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!((*types = TALLOC_ARRAY(mem_ctx, uint32, num_names)))) {
|
||||
if (!((*types = TALLOC_ARRAY(mem_ctx, enum lsa_SidType, num_names)))) {
|
||||
DEBUG(0, ("cli_lsa_lookup_sids(): out of memory\n"));
|
||||
result = NT_STATUS_NO_MEMORY;
|
||||
goto done;
|
||||
|
Loading…
x
Reference in New Issue
Block a user