summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-20 15:21:01 +0100
committerVolker Lendecke <vl@samba.org>2010-02-22 23:23:20 +0100
commit327f93bf1c49d725964a637e657915ccf460e8e4 (patch)
tree4e2250cd07606ee5a8f34faf63a7ff9c24bd4070
parent41ebf583e86a17fd2d1dc4443b81ef1ad27e1f4c (diff)
downloadsamba-327f93bf1c49d725964a637e657915ccf460e8e4.tar.gz
samba-327f93bf1c49d725964a637e657915ccf460e8e4.tar.bz2
samba-327f93bf1c49d725964a637e657915ccf460e8e4.zip
s3: Explicitly handle inbuf in cli_getatr_done
-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 291f76dd91..a034b5cebb 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -3431,9 +3431,12 @@ static void cli_getatr_done(struct tevent_req *subreq)
req, struct cli_getatr_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;
@@ -3443,7 +3446,6 @@ static void cli_getatr_done(struct tevent_req *subreq)
state->size = (SMB_OFF_T)IVAL(vwv+3,0);
state->write_time = make_unix_date3(vwv+1, state->zone_offset);
- TALLOC_FREE(subreq);
tevent_req_done(req);
}