diff options
author | Simo Sorce <idra@samba.org> | 2010-07-07 17:14:27 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-07-08 01:08:05 -0400 |
commit | ae526514a936b46112845480646402fdd385d7a2 (patch) | |
tree | 1132753ec6561e369129e9c68bfa34d3f59d2b5c /source3/rpc_server | |
parent | d57ecf920cfb0c1a03734f120e888d34bd618f2d (diff) | |
download | samba-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_server')
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 6a40f32e23..e8a69a669f 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -1605,7 +1605,7 @@ bool api_pipe_bind_req(pipes_struct *p, prs_struct *rpc_in_p) * Try and find the correct pipe name to ensure * that this is a pipe name we support. */ - id = hdr_rb.rpc_context[0].abstract; + id = hdr_rb.rpc_context[0].abstract_syntax; if (rpc_srv_pipe_exists_by_id(&id)) { DEBUG(3, ("api_pipe_bind_req: \\PIPE\\%s -> \\PIPE\\%s\n", rpc_srv_get_pipe_cli_name(&id), @@ -1614,13 +1614,13 @@ bool api_pipe_bind_req(pipes_struct *p, prs_struct *rpc_in_p) status = smb_probe_module( "rpc", get_pipe_name_from_syntax( talloc_tos(), - &hdr_rb.rpc_context[0].abstract)); + &hdr_rb.rpc_context[0].abstract_syntax)); if (NT_STATUS_IS_ERR(status)) { DEBUG(3,("api_pipe_bind_req: Unknown pipe name %s in bind request.\n", get_pipe_name_from_syntax( talloc_tos(), - &hdr_rb.rpc_context[0].abstract))); + &hdr_rb.rpc_context[0].abstract_syntax))); prs_mem_free(&p->out_data.frag); prs_mem_free(&out_hdr_ba); prs_mem_free(&out_auth); @@ -1664,15 +1664,17 @@ bool api_pipe_bind_req(pipes_struct *p, prs_struct *rpc_in_p) unknown to NT4) Needed when adding entries to a DACL from NT5 - SK */ - if(check_bind_req(p, &hdr_rb.rpc_context[0].abstract, &hdr_rb.rpc_context[0].transfer[0], - hdr_rb.rpc_context[0].context_id )) { + if (check_bind_req(p, + &hdr_rb.rpc_context[0].abstract_syntax, + &hdr_rb.rpc_context[0].transfer_syntaxes[0], + hdr_rb.rpc_context[0].context_id)) { init_rpc_hdr_ba(&hdr_ba, RPC_MAX_PDU_FRAG_LEN, RPC_MAX_PDU_FRAG_LEN, assoc_gid, ack_pipe_name, 0x1, 0x0, 0x0, - &hdr_rb.rpc_context[0].transfer[0]); + &hdr_rb.rpc_context[0].transfer_syntaxes[0]); } else { /* Rejection reason: abstract syntax not supported */ init_rpc_hdr_ba(&hdr_ba, RPC_MAX_PDU_FRAG_LEN, @@ -1941,15 +1943,17 @@ bool api_pipe_alter_context(pipes_struct *p, prs_struct *rpc_in_p) unknown to NT4) Needed when adding entries to a DACL from NT5 - SK */ - if(check_bind_req(p, &hdr_rb.rpc_context[0].abstract, &hdr_rb.rpc_context[0].transfer[0], - hdr_rb.rpc_context[0].context_id )) { + if (check_bind_req(p, + &hdr_rb.rpc_context[0].abstract_syntax, + &hdr_rb.rpc_context[0].transfer_syntaxes[0], + hdr_rb.rpc_context[0].context_id)) { init_rpc_hdr_ba(&hdr_ba, RPC_MAX_PDU_FRAG_LEN, RPC_MAX_PDU_FRAG_LEN, assoc_gid, ack_pipe_name, 0x1, 0x0, 0x0, - &hdr_rb.rpc_context[0].transfer[0]); + &hdr_rb.rpc_context[0].transfer_syntaxes[0]); } else { /* Rejection reason: abstract syntax not supported */ init_rpc_hdr_ba(&hdr_ba, RPC_MAX_PDU_FRAG_LEN, |