1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s4:librpc: pass dcecli_connection instead of dcerpc_pipe to dcerpc_secondary_smb_send()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2013-09-19 18:36:19 +02:00
parent bebc05a973
commit 45fc961932
3 changed files with 4 additions and 4 deletions

View File

@ -214,7 +214,7 @@ NTSTATUS dcerpc_bind_auth_schannel(TALLOC_CTX *tmp_ctx,
struct tevent_context *dcerpc_event_context(struct dcerpc_pipe *p);
NTSTATUS dcerpc_init(void);
struct composite_context *dcerpc_secondary_smb_send(struct dcecli_connection *c1,
struct dcerpc_pipe *p2,
struct dcecli_connection *c2,
const char *pipe_name);
NTSTATUS dcerpc_secondary_smb_recv(struct composite_context *c);
NTSTATUS dcerpc_secondary_context(struct dcerpc_pipe *p,

View File

@ -81,7 +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:
pipe_smb_req = dcerpc_secondary_smb_send(s->pipe->conn, s->pipe2,
pipe_smb_req = dcerpc_secondary_smb_send(s->pipe->conn, s->pipe2->conn,
s->binding->endpoint);
composite_continue(c, pipe_smb_req, continue_open_smb, c);
return c;

View File

@ -591,7 +591,7 @@ _PUBLIC_ NTSTATUS dcerpc_pipe_open_smb(struct dcerpc_pipe *p,
}
struct composite_context *dcerpc_secondary_smb_send(struct dcecli_connection *c1,
struct dcerpc_pipe *p2,
struct dcecli_connection *c2,
const char *pipe_name)
{
struct smb_private *smb;
@ -601,7 +601,7 @@ struct composite_context *dcerpc_secondary_smb_send(struct dcecli_connection *c1
smb = talloc_get_type(c1->transport.private_data, struct smb_private);
if (!smb) return NULL;
return dcerpc_pipe_open_smb_send(p2->conn,
return dcerpc_pipe_open_smb_send(c2,
smb->conn,
smb->session,
smb->tcon,