diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-08-03 05:59:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:57:45 -0500 |
commit | cfdd3e68bed5f0c8cfa7d50ee8d7ce70826aa664 (patch) | |
tree | e1481831534a1ebe04b5efd7bf9c58d731c247e1 | |
parent | 94fb514376e7cb1c3ba4f89e10289350052d1294 (diff) | |
download | samba-cfdd3e68bed5f0c8cfa7d50ee8d7ce70826aa664.tar.gz samba-cfdd3e68bed5f0c8cfa7d50ee8d7ce70826aa664.tar.bz2 samba-cfdd3e68bed5f0c8cfa7d50ee8d7ce70826aa664.zip |
r1631: don't use req->transport after req has been destroyed
(This used to be commit 35f4ad4700de25085a2d0e5d0f9674ca2e606cd1)
-rw-r--r-- | source4/libcli/raw/rawfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/raw/rawfile.c b/source4/libcli/raw/rawfile.c index 5128ba96ce..0d00ffcca6 100644 --- a/source4/libcli/raw/rawfile.c +++ b/source4/libcli/raw/rawfile.c @@ -267,6 +267,7 @@ static struct cli_request *smb_raw_t2open_send(struct cli_tree *tree, ****************************************************************************/ static NTSTATUS smb_raw_t2open_recv(struct cli_request *req, TALLOC_CTX *mem_ctx, union smb_open *parms) { + struct cli_transport *transport = req?req->transport:NULL; struct smb_trans2 t2; NTSTATUS status; @@ -279,8 +280,7 @@ static NTSTATUS smb_raw_t2open_recv(struct cli_request *req, TALLOC_CTX *mem_ctx parms->t2open.out.fnum = SVAL(t2.out.params.data, VWV(0)); parms->t2open.out.attrib = SVAL(t2.out.params.data, VWV(1)); - parms->t2open.out.write_time = raw_pull_dos_date3(req->transport, - t2.out.params.data + VWV(2)); + parms->t2open.out.write_time = raw_pull_dos_date3(transport, t2.out.params.data + VWV(2)); parms->t2open.out.size = IVAL(t2.out.params.data, VWV(4)); parms->t2open.out.access = SVAL(t2.out.params.data, VWV(6)); parms->t2open.out.ftype = SVAL(t2.out.params.data, VWV(7)); |