diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-09-17 07:18:19 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-10-17 08:48:54 +1300 |
commit | e9998d16689aaee89746a741fcaa1622147a5890 (patch) | |
tree | 138f9a6e2cb92d8f60c857a8d8d1381a7f98ba3d /source4 | |
parent | 07ec60ce72bbf3ff0ac2ddb94de24fb47a48cc1e (diff) | |
download | samba-e9998d16689aaee89746a741fcaa1622147a5890.tar.gz samba-e9998d16689aaee89746a741fcaa1622147a5890.tar.bz2 samba-e9998d16689aaee89746a741fcaa1622147a5890.zip |
s4:librpc/rpc: make use of dcerpc_secondary_smb_send/recv() in dcerpc_secondary_context()
This avoids the use of dcerpc_smb_tree(), which is a layer violation.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/librpc/rpc/dcerpc_secondary.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source4/librpc/rpc/dcerpc_secondary.c b/source4/librpc/rpc/dcerpc_secondary.c index 65466e45e0..2787f0a3dc 100644 --- a/source4/librpc/rpc/dcerpc_secondary.c +++ b/source4/librpc/rpc/dcerpc_secondary.c @@ -37,7 +37,6 @@ struct sec_conn_state { struct dcerpc_pipe *pipe; struct dcerpc_pipe *pipe2; struct dcerpc_binding *binding; - struct smbcli_tree *tree; struct socket_address *peer_addr; }; @@ -82,14 +81,7 @@ _PUBLIC_ struct composite_context* dcerpc_secondary_connection_send(struct dcerp /* open second dcerpc pipe using the same transport as for primary pipe */ switch (s->pipe->conn->transport.transport) { case NCACN_NP: - /* get smb tree of primary dcerpc pipe opened on smb */ - s->tree = dcerpc_smb_tree(s->pipe->conn); - if (!s->tree) { - composite_error(c, NT_STATUS_INVALID_PARAMETER); - return c; - } - - pipe_smb_req = dcerpc_pipe_open_smb_send(s->pipe2, s->tree, + pipe_smb_req = dcerpc_secondary_smb_send(s->pipe->conn, s->pipe2, s->binding->endpoint); composite_continue(c, pipe_smb_req, continue_open_smb, c); return c; @@ -134,7 +126,7 @@ static void continue_open_smb(struct composite_context *ctx) struct composite_context *c = talloc_get_type(ctx->async.private_data, struct composite_context); - c->status = dcerpc_pipe_open_smb_recv(ctx); + c->status = dcerpc_secondary_smb_recv(ctx); if (!composite_is_ok(c)) return; continue_pipe_open(c); |