s4:smb2srv: remove the chained file handle on close
authorStefan Metzmacher <metze@samba.org>
Tue, 9 Jun 2009 14:33:46 +0000 (16:33 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 9 Jun 2009 14:49:31 +0000 (16:49 +0200)
metze

source4/smb_server/smb2/fileio.c

index bb894b2c4ef9d263c9269f62e72833e77cda8deb..12bfd5175685548111da457abc3794d0cde79ca3 100644 (file)
@@ -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);
 }