summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-20 15:19:45 +0100
committerVolker Lendecke <vl@samba.org>2010-02-22 23:23:19 +0100
commit409fd662b062c282fc748200ccbd62e415e87f8a (patch)
tree08c0cea7b2de2a58c0b4875bd565251e046529bb /source3/libsmb
parent12863ffa5667acca1b7e34cad599a26d6d1ae20c (diff)
downloadsamba-409fd662b062c282fc748200ccbd62e415e87f8a.tar.gz
samba-409fd662b062c282fc748200ccbd62e415e87f8a.tar.bz2
samba-409fd662b062c282fc748200ccbd62e415e87f8a.zip
s3: Explicitly handle inbuf in cli_open_done
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clifile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index c5f739b6db..6e65a826e3 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -2252,11 +2252,13 @@ static void cli_open_done(struct tevent_req *subreq)
req, struct cli_open_state);
uint8_t wct;
uint16_t *vwv;
+ uint8_t *inbuf;
NTSTATUS status;
- status = cli_smb_recv(subreq, NULL, NULL, 3, &wct, &vwv, NULL, NULL);
+ status = cli_smb_recv(subreq, state, &inbuf, 3, &wct, &vwv, NULL,
+ NULL);
+ TALLOC_FREE(subreq);
if (!NT_STATUS_IS_OK(status)) {
- TALLOC_FREE(subreq);
tevent_req_nterror(req, status);
return;
}