summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-20 15:26:06 +0100
committerVolker Lendecke <vl@samba.org>2010-02-22 23:23:20 +0100
commit78d7f27993ee67f6df48e437b994c5b8e1aba165 (patch)
treec737364c94847fd7fc38c89da682372adbd02fd6 /source3
parent486f734fd8794fb424d44b21695973cbd01a348b (diff)
downloadsamba-78d7f27993ee67f6df48e437b994c5b8e1aba165.tar.gz
samba-78d7f27993ee67f6df48e437b994c5b8e1aba165.tar.bz2
samba-78d7f27993ee67f6df48e437b994c5b8e1aba165.zip
s3: Explicitly handle inbuf in cli_read_andx_done
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clireadwrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index 47693e3117..aa6be3a57a 100644
--- a/source3/libsmb/clireadwrite.c
+++ b/source3/libsmb/clireadwrite.c
@@ -165,8 +165,9 @@ static void cli_read_andx_done(struct tevent_req *subreq)
uint32_t num_bytes;
uint8_t *bytes;
- state->status = cli_smb_recv(subreq, NULL, NULL, 12, &wct, &vwv,
+ state->status = cli_smb_recv(subreq, state, &inbuf, 12, &wct, &vwv,
&num_bytes, &bytes);
+ TALLOC_FREE(subreq);
if (NT_STATUS_IS_ERR(state->status)) {
tevent_req_nterror(req, state->status);
return;
@@ -194,7 +195,6 @@ static void cli_read_andx_done(struct tevent_req *subreq)
return;
}
- inbuf = cli_smb_inbuf(subreq);
state->buf = (uint8_t *)smb_base(inbuf) + SVAL(vwv+6, 0);
if (trans_oob(smb_len(inbuf), SVAL(vwv+6, 0), state->received)