summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-20 11:50:05 +0100
committerVolker Lendecke <vl@samba.org>2010-02-22 23:23:18 +0100
commit299d9c409dd20b1b5abe4abf2a11c121c8a76abb (patch)
treeae7f5767558c1ba3c369e51c7768fb8a4456a677 /source3/libsmb
parentd122bfc064a0265b1e08dd52bbce61caac1d6a6b (diff)
downloadsamba-299d9c409dd20b1b5abe4abf2a11c121c8a76abb.tar.gz
samba-299d9c409dd20b1b5abe4abf2a11c121c8a76abb.tar.bz2
samba-299d9c409dd20b1b5abe4abf2a11c121c8a76abb.zip
s3: Explicitly handle inbuf in cli_smb_oplock_break_waiter_done
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/async_smb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index 9f92ae7012..520861c4c5 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -1057,12 +1057,13 @@ static void cli_smb_oplock_break_waiter_done(struct tevent_req *subreq)
uint16_t *vwv;
uint32_t num_bytes;
uint8_t *bytes;
+ uint8_t *inbuf;
NTSTATUS status;
- status = cli_smb_recv(subreq, NULL, NULL, 8, &wct, &vwv,
+ status = cli_smb_recv(subreq, state, &inbuf, 8, &wct, &vwv,
&num_bytes, &bytes);
+ TALLOC_FREE(subreq);
if (!NT_STATUS_IS_OK(status)) {
- TALLOC_FREE(subreq);
tevent_req_nterror(req, status);
return;
}