summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-20 15:27:22 +0100
committerVolker Lendecke <vl@samba.org>2010-02-22 23:23:20 +0100
commit964210b89a9438356c3c37a4f9d227ce6cf09c8f (patch)
tree59d415faeee207ff831e6f36551cd104928ce858 /source3/libsmb
parent78d7f27993ee67f6df48e437b994c5b8e1aba165 (diff)
downloadsamba-964210b89a9438356c3c37a4f9d227ce6cf09c8f.tar.gz
samba-964210b89a9438356c3c37a4f9d227ce6cf09c8f.tar.bz2
samba-964210b89a9438356c3c37a4f9d227ce6cf09c8f.zip
s3: Explicitly handle inbuf in cli_write_andx_done
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clireadwrite.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index aa6be3a57a..7b688d4ff3 100644
--- a/source3/libsmb/clireadwrite.c
+++ b/source3/libsmb/clireadwrite.c
@@ -1018,11 +1018,13 @@ static void cli_write_andx_done(struct tevent_req *subreq)
req, struct cli_write_andx_state);
uint8_t wct;
uint16_t *vwv;
+ uint8_t *inbuf;
NTSTATUS status;
- status = cli_smb_recv(subreq, NULL, NULL, 6, &wct, &vwv, NULL, NULL);
+ status = cli_smb_recv(subreq, state, &inbuf, 6, &wct, &vwv,
+ NULL, NULL);
+ TALLOC_FREE(subreq);
if (NT_STATUS_IS_ERR(status)) {
- TALLOC_FREE(subreq);
tevent_req_nterror(req, status);
return;
}