summaryrefslogtreecommitdiff
path: root/source3/libsmb/clientgen.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-20 09:53:58 +0100
committerVolker Lendecke <vl@samba.org>2010-02-22 23:23:18 +0100
commitd122bfc064a0265b1e08dd52bbce61caac1d6a6b (patch)
tree9b3f7d7526c81e1d089f187ed559244df843f9dd /source3/libsmb/clientgen.c
parent91bf841c2e2997f7b39e3e757d3b88054829ed62 (diff)
downloadsamba-d122bfc064a0265b1e08dd52bbce61caac1d6a6b.tar.gz
samba-d122bfc064a0265b1e08dd52bbce61caac1d6a6b.tar.bz2
samba-d122bfc064a0265b1e08dd52bbce61caac1d6a6b.zip
s3: Add a talloc_move for the inbuf to cli_smb_recv
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r--source3/libsmb/clientgen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 0afa9e6be7..92b898146e 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -852,7 +852,8 @@ static void cli_echo_done(struct tevent_req *subreq)
uint32_t num_bytes;
uint8_t *bytes;
- status = cli_smb_recv(subreq, 0, NULL, NULL, &num_bytes, &bytes);
+ status = cli_smb_recv(subreq, NULL, NULL, 0, NULL, NULL,
+ &num_bytes, &bytes);
if (!NT_STATUS_IS_OK(status)) {
tevent_req_nterror(req, status);
return;
@@ -989,7 +990,8 @@ NTSTATUS cli_smb(TALLOC_CTX *mem_ctx, struct cli_state *cli,
if (!tevent_req_poll_ntstatus(req, ev, &status)) {
goto fail;
}
- status = cli_smb_recv(req, min_wct, pwct, pvwv, pnum_bytes, pbytes);
+ status = cli_smb_recv(req, NULL, NULL, min_wct, pwct, pvwv,
+ pnum_bytes, pbytes);
fail:
TALLOC_FREE(ev);
if (NT_STATUS_IS_OK(status)) {