summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-20 15:19:28 +0100
committerVolker Lendecke <vl@samba.org>2010-02-22 23:23:19 +0100
commit12863ffa5667acca1b7e34cad599a26d6d1ae20c (patch)
tree17c77c4796bf1213fcd763f57d40ad451d2bcfcf /source3
parent1fab94a31bd6060fe64e1ac5245a19149b97e035 (diff)
downloadsamba-12863ffa5667acca1b7e34cad599a26d6d1ae20c.tar.gz
samba-12863ffa5667acca1b7e34cad599a26d6d1ae20c.tar.bz2
samba-12863ffa5667acca1b7e34cad599a26d6d1ae20c.zip
s3: Explicitly handle inbuf in cli_ntcreate_done
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clifile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index 80e91a7efd..c5f739b6db 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -2038,12 +2038,13 @@ static void cli_ntcreate_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, 3, &wct, &vwv,
+ status = cli_smb_recv(subreq, state, &inbuf, 3, &wct, &vwv,
&num_bytes, &bytes);
+ TALLOC_FREE(subreq);
if (!NT_STATUS_IS_OK(status)) {
- TALLOC_FREE(subreq);
tevent_req_nterror(req, status);
return;
}