mirror of
https://github.com/samba-team/samba.git
synced 2025-02-14 01:57:53 +03:00
Re-run make idl.
Guenther
This commit is contained in:
parent
7b56a4bcf2
commit
ad30737490
@ -1398,7 +1398,7 @@ NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
struct policy_handle *handle /* [in] [ref] */,
|
||||
struct lsa_LUID *luid /* [in] [ref] */,
|
||||
struct lsa_StringLarge *name /* [out] [unique] */)
|
||||
struct lsa_StringLarge **name /* [out] [ref] */)
|
||||
{
|
||||
struct lsa_LookupPrivName r;
|
||||
NTSTATUS status;
|
||||
@ -1431,9 +1431,7 @@ NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli,
|
||||
}
|
||||
|
||||
/* Return variables */
|
||||
if (name && r.out.name) {
|
||||
*name = *r.out.name;
|
||||
}
|
||||
*name = *r.out.name;
|
||||
|
||||
/* Return result */
|
||||
return r.out.result;
|
||||
|
@ -161,7 +161,7 @@ NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
struct policy_handle *handle /* [in] [ref] */,
|
||||
struct lsa_LUID *luid /* [in] [ref] */,
|
||||
struct lsa_StringLarge *name /* [out] [unique] */);
|
||||
struct lsa_StringLarge **name /* [out] [ref] */);
|
||||
NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
struct policy_handle *handle /* [in] [ref] */,
|
||||
|
@ -1049,7 +1049,7 @@ struct lsa_LookupPrivName {
|
||||
} in;
|
||||
|
||||
struct {
|
||||
struct lsa_StringLarge *name;/* [unique] */
|
||||
struct lsa_StringLarge **name;/* [ref] */
|
||||
NTSTATUS result;
|
||||
} out;
|
||||
|
||||
|
@ -7674,9 +7674,12 @@ static enum ndr_err_code ndr_push_lsa_LookupPrivName(struct ndr_push *ndr, int f
|
||||
NDR_CHECK(ndr_push_lsa_LUID(ndr, NDR_SCALARS, r->in.luid));
|
||||
}
|
||||
if (flags & NDR_OUT) {
|
||||
NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.name));
|
||||
if (r->out.name) {
|
||||
NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.name));
|
||||
if (r->out.name == NULL) {
|
||||
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
|
||||
}
|
||||
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.name));
|
||||
if (*r->out.name) {
|
||||
NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.name));
|
||||
}
|
||||
NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
|
||||
}
|
||||
@ -7689,6 +7692,7 @@ static enum ndr_err_code ndr_pull_lsa_LookupPrivName(struct ndr_pull *ndr, int f
|
||||
TALLOC_CTX *_mem_save_handle_0;
|
||||
TALLOC_CTX *_mem_save_luid_0;
|
||||
TALLOC_CTX *_mem_save_name_0;
|
||||
TALLOC_CTX *_mem_save_name_1;
|
||||
if (flags & NDR_IN) {
|
||||
ZERO_STRUCT(r->out);
|
||||
|
||||
@ -7706,20 +7710,28 @@ static enum ndr_err_code ndr_pull_lsa_LookupPrivName(struct ndr_pull *ndr, int f
|
||||
NDR_PULL_SET_MEM_CTX(ndr, r->in.luid, LIBNDR_FLAG_REF_ALLOC);
|
||||
NDR_CHECK(ndr_pull_lsa_LUID(ndr, NDR_SCALARS, r->in.luid));
|
||||
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_luid_0, LIBNDR_FLAG_REF_ALLOC);
|
||||
NDR_PULL_ALLOC(ndr, r->out.name);
|
||||
ZERO_STRUCTP(r->out.name);
|
||||
}
|
||||
if (flags & NDR_OUT) {
|
||||
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
|
||||
NDR_PULL_ALLOC(ndr, r->out.name);
|
||||
}
|
||||
_mem_save_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
|
||||
NDR_PULL_SET_MEM_CTX(ndr, r->out.name, LIBNDR_FLAG_REF_ALLOC);
|
||||
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_name));
|
||||
if (_ptr_name) {
|
||||
NDR_PULL_ALLOC(ndr, r->out.name);
|
||||
NDR_PULL_ALLOC(ndr, *r->out.name);
|
||||
} else {
|
||||
r->out.name = NULL;
|
||||
*r->out.name = NULL;
|
||||
}
|
||||
if (r->out.name) {
|
||||
_mem_save_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
|
||||
NDR_PULL_SET_MEM_CTX(ndr, r->out.name, 0);
|
||||
NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.name));
|
||||
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_name_0, 0);
|
||||
if (*r->out.name) {
|
||||
_mem_save_name_1 = NDR_PULL_GET_MEM_CTX(ndr);
|
||||
NDR_PULL_SET_MEM_CTX(ndr, *r->out.name, 0);
|
||||
NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.name));
|
||||
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_name_1, 0);
|
||||
}
|
||||
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_name_0, LIBNDR_FLAG_REF_ALLOC);
|
||||
NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
|
||||
}
|
||||
return NDR_ERR_SUCCESS;
|
||||
@ -7750,10 +7762,13 @@ _PUBLIC_ void ndr_print_lsa_LookupPrivName(struct ndr_print *ndr, const char *na
|
||||
ndr->depth++;
|
||||
ndr_print_ptr(ndr, "name", r->out.name);
|
||||
ndr->depth++;
|
||||
if (r->out.name) {
|
||||
ndr_print_lsa_StringLarge(ndr, "name", r->out.name);
|
||||
ndr_print_ptr(ndr, "name", *r->out.name);
|
||||
ndr->depth++;
|
||||
if (*r->out.name) {
|
||||
ndr_print_lsa_StringLarge(ndr, "name", *r->out.name);
|
||||
}
|
||||
ndr->depth--;
|
||||
ndr->depth--;
|
||||
ndr_print_NTSTATUS(ndr, "result", r->out.result);
|
||||
ndr->depth--;
|
||||
}
|
||||
|
@ -2521,7 +2521,7 @@ static bool api_lsa_LookupPrivName(pipes_struct *p)
|
||||
}
|
||||
|
||||
ZERO_STRUCT(r->out);
|
||||
r->out.name = talloc_zero(r, struct lsa_StringLarge);
|
||||
r->out.name = talloc_zero(r, struct lsa_StringLarge *);
|
||||
if (r->out.name == NULL) {
|
||||
talloc_free(r);
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user