diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-06-09 16:33:46 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-06-09 16:49:31 +0200 |
commit | 7b27b5f6740e6d0d90f467a575ccbd2fdff7ea01 (patch) | |
tree | 159b859c212836bbd109698e61c1d8e51d65f0f3 /source4 | |
parent | d153430e32ba8651feb9a626613c46a4a60c7bbf (diff) | |
download | samba-7b27b5f6740e6d0d90f467a575ccbd2fdff7ea01.tar.gz samba-7b27b5f6740e6d0d90f467a575ccbd2fdff7ea01.tar.bz2 samba-7b27b5f6740e6d0d90f467a575ccbd2fdff7ea01.zip |
s4:smb2srv: remove the chained file handle on close
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/smb_server/smb2/fileio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/smb_server/smb2/fileio.c b/source4/smb_server/smb2/fileio.c index bb894b2c4e..12bfd51756 100644 --- a/source4/smb_server/smb2/fileio.c +++ b/source4/smb_server/smb2/fileio.c @@ -182,6 +182,10 @@ static void smb2srv_close_send(struct ntvfs_request *ntvfs) SBVAL(req->out.body, 0x30, io->smb2.out.size); SIVAL(req->out.body, 0x38, io->smb2.out.file_attr); + /* also destroy the chained file handle */ + req->chained_file_handle = NULL; + memset(req->_chained_file_handle, 0, sizeof(req->_chained_file_handle)); + smb2srv_send_reply(req); } |