git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fab94a
)
s3: Explicitly handle inbuf in cli_ntcreate_done
author
Volker Lendecke
<vl@samba.org>
Sat, 20 Feb 2010 14:19:28 +0000
(15:19 +0100)
committer
Volker Lendecke
<vl@samba.org>
Mon, 22 Feb 2010 22:23:19 +0000
(23:23 +0100)
source3/libsmb/clifile.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clifile.c
b/source3/libsmb/clifile.c
index 80e91a7efdd961a6d0373174ed54d6200473aae3..c5f739b6db4f8461eaa686e7d9a34f4752e69f47 100644
(file)
--- 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;
}