diff options
author | Volker Lendecke <vl@samba.org> | 2013-11-22 16:17:44 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-11-22 13:30:27 -0800 |
commit | 4e344aba4e66e2e4f59f407f305072bfbb82dc7d (patch) | |
tree | 538535bca11fcb28c464aabac17256a5b1953baa /source3 | |
parent | 80e6ca56258f436df07fcfea6854cf653d5f3f0d (diff) | |
download | samba-4e344aba4e66e2e4f59f407f305072bfbb82dc7d.tar.gz samba-4e344aba4e66e2e4f59f407f305072bfbb82dc7d.tar.xz samba-4e344aba4e66e2e4f59f407f305072bfbb82dc7d.zip |
smbd: Point reply_open at the correct stat struct
Not sure if anybody will ever notice this these days, but the same is
done in the createfile calls.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/reply.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index ffbfabbca5..c11c318ef9 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1960,6 +1960,10 @@ void reply_open(struct smb_request *req) goto out; } + /* Ensure we're pointing at the correct stat struct. */ + TALLOC_FREE(smb_fname); + smb_fname = fsp->fsp_name; + size = smb_fname->st.st_ex_size; fattr = dos_mode(conn, smb_fname); @@ -2007,7 +2011,6 @@ void reply_open(struct smb_request *req) CVAL(req->outbuf,smb_flg)|CORE_OPLOCK_GRANTED); } out: - TALLOC_FREE(smb_fname); END_PROFILE(SMBopen); return; } |