diff options
author | Gregor Beck <gbeck@sernet.de> | 2013-09-11 14:16:15 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-01-07 08:37:40 +0100 |
commit | a8c6a05976cee9e94001216eebab6a4ae38ec378 (patch) | |
tree | 029cbc018523f79d915d71adb8610aaa6af3984f /source3 | |
parent | 7ebb0813e6b978692aa481501115e6d9f0a4f341 (diff) | |
download | samba-a8c6a05976cee9e94001216eebab6a4ae38ec378.tar.gz samba-a8c6a05976cee9e94001216eebab6a4ae38ec378.tar.xz samba-a8c6a05976cee9e94001216eebab6a4ae38ec378.zip |
s3:libsmb: let cli_np_tstream use smb1cli_trans
Signed-off-by: Gregor Beck <gbeck@sernet.de>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/cli_np_tstream.c | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/source3/libsmb/cli_np_tstream.c b/source3/libsmb/cli_np_tstream.c index b49c903d8f..0fd24ff354 100644 --- a/source3/libsmb/cli_np_tstream.c +++ b/source3/libsmb/cli_np_tstream.c @@ -809,17 +809,22 @@ static void tstream_cli_np_readv_trans_start(struct tevent_req *req) } if (cli_nps->is_smb1) { - subreq = cli_trans_send(state, state->ev, - cli_nps->cli, - SMBtrans, - "\\PIPE\\", - 0, 0, 0, - cli_nps->trans.setup, 2, - 0, - NULL, 0, 0, - cli_nps->write.buf, - cli_nps->write.ofs, - TSTREAM_CLI_NP_MAX_BUF_SIZE); + subreq = smb1cli_trans_send(state, state->ev, + cli_nps->cli->conn, SMBtrans, + 0, 0, /* *_flags */ + 0, 0, /* *_flags2 */ + cli_nps->cli->timeout, + cli_nps->cli->smb1.pid, + cli_nps->cli->smb1.tcon, + cli_nps->cli->smb1.session, + "\\PIPE\\", + 0, 0, 0, + cli_nps->trans.setup, 2, + 0, + NULL, 0, 0, + cli_nps->write.buf, + cli_nps->write.ofs, + TSTREAM_CLI_NP_MAX_BUF_SIZE); } else { DATA_BLOB in_input_buffer = data_blob_null; DATA_BLOB in_output_buffer = data_blob_null; @@ -870,9 +875,9 @@ static void tstream_cli_np_readv_trans_done(struct tevent_req *subreq) NTSTATUS status; if (cli_nps->is_smb1) { - status = cli_trans_recv(subreq, state, NULL, NULL, 0, NULL, - NULL, 0, NULL, - &rcvbuf, 0, &received); + status = smb1cli_trans_recv(subreq, state, NULL, NULL, 0, NULL, + NULL, 0, NULL, + &rcvbuf, 0, &received); } else { DATA_BLOB out_input_buffer = data_blob_null; DATA_BLOB out_output_buffer = data_blob_null; |