summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/clifile.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-20 15:25:34 +0100
committerVolker Lendecke <vl@samba.org>2010-02-22 23:23:20 +0100
commit486f734fd8794fb424d44b21695973cbd01a348b (patch)
tree010f1464574642681e8c20b742d35e3bca0c186f /source3/libsmb/clifile.c
parentbe62ca140335c7f841e44195450090201e09437a (diff)
downloadsamba-486f734fd8794fb424d44b21695973cbd01a348b.tar.gz
samba-486f734fd8794fb424d44b21695973cbd01a348b.tar.xz
samba-486f734fd8794fb424d44b21695973cbd01a348b.zip
s3: Explicitly handle inbuf in cli_message_start_done
Diffstat (limited to 'source3/libsmb/clifile.c')
-rw-r--r--source3/libsmb/clifile.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index ec81cf9201..6e7a74f8d5 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -4061,19 +4061,18 @@ static void cli_ctemp_done(struct tevent_req *subreq)
uint16_t *vwv;
uint32_t num_bytes = 0;
uint8_t *bytes = NULL;
+ uint8_t *inbuf;
- status = cli_smb_recv(subreq, NULL, NULL, 1, &wcnt, &vwv,
+ status = cli_smb_recv(subreq, state, &inbuf, 1, &wcnt, &vwv,
&num_bytes, &bytes);
+ TALLOC_FREE(subreq);
if (!NT_STATUS_IS_OK(status)) {
- TALLOC_FREE(subreq);
tevent_req_nterror(req, status);
return;
}
state->fnum = SVAL(vwv+0, 0);
- TALLOC_FREE(subreq);
-
/* From W2K3, the result is just the ASCII name */
if (num_bytes < 2) {
tevent_req_nterror(req, NT_STATUS_DATA_ERROR);