summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-20 15:23:31 +0100
committerVolker Lendecke <vl@samba.org>2010-02-22 23:23:20 +0100
commitbe62ca140335c7f841e44195450090201e09437a (patch)
treedb561547cca113dfcd9cb1085654c664d8558530 /source3/libsmb
parent327f93bf1c49d725964a637e657915ccf460e8e4 (diff)
downloadsamba-be62ca140335c7f841e44195450090201e09437a.tar.gz
samba-be62ca140335c7f841e44195450090201e09437a.tar.bz2
samba-be62ca140335c7f841e44195450090201e09437a.zip
s3: Explicitly handle inbuf in cli_dskattr_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 a034b5cebb..ec81cf9201 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -3927,9 +3927,12 @@ static void cli_dskattr_done(struct tevent_req *subreq)
req, struct cli_dskattr_state);
uint8_t wct;
uint16_t *vwv = NULL;
+ uint8_t *inbuf;
NTSTATUS status;
- status = cli_smb_recv(subreq, NULL, NULL, 4, &wct, &vwv, NULL, NULL);
+ status = cli_smb_recv(subreq, state, &inbuf, 4, &wct, &vwv, NULL,
+ NULL);
+ TALLOC_FREE(subreq);
if (!NT_STATUS_IS_OK(status)) {
tevent_req_nterror(req, status);
return;
@@ -3937,7 +3940,6 @@ static void cli_dskattr_done(struct tevent_req *subreq)
state->bsize = SVAL(vwv+1, 0)*SVAL(vwv+2,0);
state->total = SVAL(vwv+0, 0);
state->avail = SVAL(vwv+3, 0);
- TALLOC_FREE(subreq);
tevent_req_done(req);
}