summaryrefslogtreecommitdiff
path: root/source4/rpc_server/lsa
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-01-09 15:50:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:56 -0500
commita0ca09628be323c445cf63ec7cff949bdf3aef44 (patch)
tree49d64ac6e817adfcd7221547e788d272d2d817d2 /source4/rpc_server/lsa
parenta36c172d46a50406ba9dfc19d3c33965a62c79a0 (diff)
downloadsamba-a0ca09628be323c445cf63ec7cff949bdf3aef44.tar.gz
samba-a0ca09628be323c445cf63ec7cff949bdf3aef44.tar.bz2
samba-a0ca09628be323c445cf63ec7cff949bdf3aef44.zip
r12793: fix bugs
metze (This used to be commit 65be02a9801444c01230903d130b2d71b6c15617)
Diffstat (limited to 'source4/rpc_server/lsa')
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c10
1 files changed, 5 insertions, 5 deletions
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;
}