summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb2
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-06-09 16:33:46 +0200
committerStefan Metzmacher <metze@samba.org>2009-06-09 16:49:31 +0200
commit7b27b5f6740e6d0d90f467a575ccbd2fdff7ea01 (patch)
tree159b859c212836bbd109698e61c1d8e51d65f0f3 /source4/smb_server/smb2
parentd153430e32ba8651feb9a626613c46a4a60c7bbf (diff)
downloadsamba-7b27b5f6740e6d0d90f467a575ccbd2fdff7ea01.tar.gz
samba-7b27b5f6740e6d0d90f467a575ccbd2fdff7ea01.tar.bz2
samba-7b27b5f6740e6d0d90f467a575ccbd2fdff7ea01.zip
s4:smb2srv: remove the chained file handle on close
metze
Diffstat (limited to 'source4/smb_server/smb2')
-rw-r--r--source4/smb_server/smb2/fileio.c4
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);
}