From a0ca09628be323c445cf63ec7cff949bdf3aef44 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 9 Jan 2006 15:50:08 +0000 Subject: r12793: fix bugs metze (This used to be commit 65be02a9801444c01230903d130b2d71b6c15617) --- source4/rpc_server/lsa/dcesrv_lsa.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4') diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index c02536fc0b..914bb98eda 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -1411,7 +1411,7 @@ static NTSTATUS lsa_EnumAccountRights(struct dcesrv_call_state *dce_call, r->out.rights->count = el->num_values; r->out.rights->names = talloc_array(r->out.rights, - struct lsa_String, r->out.rights->count); + struct lsa_StringLarge, r->out.rights->count); if (r->out.rights->names == NULL) { return NT_STATUS_NO_MEMORY; } @@ -1534,7 +1534,7 @@ static NTSTATUS lsa_AddPrivilegesToAccount(struct dcesrv_call_state *dce_call, T astate = h->data; rights.count = r->in.privs->count; - rights.names = talloc_array(mem_ctx, struct lsa_String, rights.count); + rights.names = talloc_array(mem_ctx, struct lsa_StringLarge, rights.count); if (rights.names == NULL) { return NT_STATUS_NO_MEMORY; } @@ -1596,7 +1596,7 @@ static NTSTATUS lsa_RemovePrivilegesFromAccount(struct dcesrv_call_state *dce_ca } rights->count = r->in.privs->count; - rights->names = talloc_array(mem_ctx, struct lsa_String, rights->count); + rights->names = talloc_array(mem_ctx, struct lsa_StringLarge, rights->count); if (rights->names == NULL) { return NT_STATUS_NO_MEMORY; } @@ -2228,7 +2228,7 @@ static NTSTATUS lsa_LookupPrivName(struct dcesrv_call_state *dce_call, return NT_STATUS_NO_SUCH_PRIVILEGE; } - r->out.name = talloc(mem_ctx, struct lsa_String); + r->out.name = talloc(mem_ctx, struct lsa_StringLarge); if (r->out.name == NULL) { return NT_STATUS_NO_MEMORY; } @@ -2258,7 +2258,7 @@ static NTSTATUS lsa_LookupPrivDisplayName(struct dcesrv_call_state *dce_call, return NT_STATUS_NO_SUCH_PRIVILEGE; } - r->out.disp_name = talloc(mem_ctx, struct lsa_String); + r->out.disp_name = talloc(mem_ctx, struct lsa_StringLarge); if (r->out.disp_name == NULL) { return NT_STATUS_NO_MEMORY; } -- cgit