summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_rpc.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-07-07 17:14:27 -0400
committerSimo Sorce <idra@samba.org>2010-07-08 01:08:05 -0400
commitae526514a936b46112845480646402fdd385d7a2 (patch)
tree1132753ec6561e369129e9c68bfa34d3f59d2b5c /source3/rpc_parse/parse_rpc.c
parentd57ecf920cfb0c1a03734f120e888d34bd618f2d (diff)
downloadsamba-ae526514a936b46112845480646402fdd385d7a2.tar.gz
samba-ae526514a936b46112845480646402fdd385d7a2.tar.bz2
samba-ae526514a936b46112845480646402fdd385d7a2.zip
s3:rpc user idl define dcerpc_ctx_list instead of custom RPC_CONTEXT
Diffstat (limited to 'source3/rpc_parse/parse_rpc.c')
-rw-r--r--source3/rpc_parse/parse_rpc.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/source3/rpc_parse/parse_rpc.c b/source3/rpc_parse/parse_rpc.c
index eb52c41544..74246c5b4e 100644
--- a/source3/rpc_parse/parse_rpc.c
+++ b/source3/rpc_parse/parse_rpc.c
@@ -188,10 +188,10 @@ static bool smb_io_rpc_hdr_bba(const char *desc, RPC_HDR_BBA *rpc, prs_struct *
}
/*******************************************************************
- Reads or writes an RPC_CONTEXT structure.
+ Reads or writes a struct dcerpc_ctx_list structure.
********************************************************************/
-bool smb_io_rpc_context(const char *desc, RPC_CONTEXT *rpc_ctx, prs_struct *ps, int depth)
+bool smb_io_rpc_context(const char *desc, struct dcerpc_ctx_list *rpc_ctx, prs_struct *ps, int depth)
{
int i;
@@ -209,17 +209,20 @@ bool smb_io_rpc_context(const char *desc, RPC_CONTEXT *rpc_ctx, prs_struct *ps,
if (rpc_ctx->num_transfer_syntaxes == 0)
return False;
- if(!smb_io_rpc_iface("", &rpc_ctx->abstract, ps, depth))
+ if(!smb_io_rpc_iface("", &rpc_ctx->abstract_syntax, ps, depth))
return False;
if (UNMARSHALLING(ps)) {
- if (!(rpc_ctx->transfer = PRS_ALLOC_MEM(ps, struct ndr_syntax_id, rpc_ctx->num_transfer_syntaxes))) {
+ rpc_ctx->transfer_syntaxes =
+ PRS_ALLOC_MEM(ps, struct ndr_syntax_id,
+ rpc_ctx->num_transfer_syntaxes);
+ if (!rpc_ctx->transfer_syntaxes) {
return False;
}
}
for (i = 0; i < rpc_ctx->num_transfer_syntaxes; i++ ) {
- if (!smb_io_rpc_iface("", &rpc_ctx->transfer[i], ps, depth))
+ if (!smb_io_rpc_iface("", &rpc_ctx->transfer_syntaxes[i], ps, depth))
return False;
}
return True;
@@ -252,7 +255,7 @@ bool smb_io_rpc_hdr_rb(const char *desc, RPC_HDR_RB *rpc, prs_struct *ps, int de
return False;
if (UNMARSHALLING(ps)) {
- if (!(rpc->rpc_context = PRS_ALLOC_MEM(ps, RPC_CONTEXT, rpc->num_contexts))) {
+ if (!(rpc->rpc_context = PRS_ALLOC_MEM(ps, struct dcerpc_ctx_list, rpc->num_contexts))) {
return False;
}
}