diff options
| author | Gregor Beck <gbeck@sernet.de> | 2013-09-13 09:26:25 +0200 |
|---|---|---|
| committer | Stefan Metzmacher <metze@samba.org> | 2014-01-07 08:37:41 +0100 |
| commit | 6ebbce96a4fcd1fea8009698e9c0ea8fb4a5e220 (patch) | |
| tree | 01d4222a769803a606ce1c4bf4149ea075110576 /source3 | |
| parent | 68d8aa41e3d89d329f5f970df1b88e87d873bc01 (diff) | |
| download | samba-6ebbce96a4fcd1fea8009698e9c0ea8fb4a5e220.tar.gz samba-6ebbce96a4fcd1fea8009698e9c0ea8fb4a5e220.tar.xz samba-6ebbce96a4fcd1fea8009698e9c0ea8fb4a5e220.zip | |
s3:libsmb: let cli_np_tstream use smb1cli_readx
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 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source3/libsmb/cli_np_tstream.c b/source3/libsmb/cli_np_tstream.c index a4a41d2db3..8acce39041 100644 --- a/source3/libsmb/cli_np_tstream.c +++ b/source3/libsmb/cli_np_tstream.c @@ -777,7 +777,12 @@ static void tstream_cli_np_readv_read_next(struct tevent_req *req) } if (cli_nps->is_smb1) { - subreq = cli_read_andx_send(state, state->ev, cli_nps->cli, + subreq = smb1cli_readx_send(state, state->ev, + cli_nps->cli->conn, + cli_nps->cli->timeout, + cli_nps->cli->smb1.pid, + cli_nps->cli->smb1.tcon, + cli_nps->cli->smb1.session, cli_nps->fnum, 0, /* offset */ TSTREAM_CLI_NP_MAX_BUF_SIZE); @@ -961,7 +966,7 @@ static void tstream_cli_np_readv_read_done(struct tevent_req *subreq) struct tstream_cli_np *cli_nps = tstream_context_data(state->stream, struct tstream_cli_np); uint8_t *rcvbuf; - ssize_t received; + uint32_t received; NTSTATUS status; /* @@ -970,11 +975,9 @@ static void tstream_cli_np_readv_read_done(struct tevent_req *subreq) */ if (cli_nps->is_smb1) { - status = cli_read_andx_recv(subreq, &received, &rcvbuf); + status = smb1cli_readx_recv(subreq, &received, &rcvbuf); } else { - uint32_t data_length = 0; - status = smb2cli_read_recv(subreq, state, &rcvbuf, &data_length); - received = data_length; + status = smb2cli_read_recv(subreq, state, &rcvbuf, &received); } /* * We can't TALLOC_FREE(subreq) as usual here, as rcvbuf still is a |
