summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-20 15:20:38 +0100
committerVolker Lendecke <vl@samba.org>2010-02-22 23:23:20 +0100
commit41ebf583e86a17fd2d1dc4443b81ef1ad27e1f4c (patch)
treef2a6185a879555145dc5afca302ab18422038bd9 /source3/libsmb
parent409fd662b062c282fc748200ccbd62e415e87f8a (diff)
downloadsamba-41ebf583e86a17fd2d1dc4443b81ef1ad27e1f4c.tar.gz
samba-41ebf583e86a17fd2d1dc4443b81ef1ad27e1f4c.tar.bz2
samba-41ebf583e86a17fd2d1dc4443b81ef1ad27e1f4c.zip
s3: Explicitly handle inbuf in cli_getattrE_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 6e65a826e3..291f76dd91 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -3267,9 +3267,12 @@ static void cli_getattrE_done(struct tevent_req *subreq)
req, struct cli_getattrE_state);
uint8_t wct;
uint16_t *vwv = NULL;
+ uint8_t *inbuf;
NTSTATUS status;
- status = cli_smb_recv(subreq, NULL, NULL, 11, &wct, &vwv, NULL, NULL);
+ status = cli_smb_recv(subreq, state, &inbuf, 11, &wct, &vwv,
+ NULL, NULL);
+ TALLOC_FREE(subreq);
if (!NT_STATUS_IS_OK(status)) {
tevent_req_nterror(req, status);
return;
@@ -3281,7 +3284,6 @@ static void cli_getattrE_done(struct tevent_req *subreq)
state->access_time = make_unix_date2(vwv+2, state->zone_offset);
state->write_time = make_unix_date2(vwv+4, state->zone_offset);
- TALLOC_FREE(subreq);
tevent_req_done(req);
}