summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_write.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-05-19 19:28:26 -0700
committerJeremy Allison <jra@samba.org>2010-05-19 19:28:26 -0700
commitaf445935555dc3fab3cefc52b375dd18b8d9bb4c (patch)
treee800d21f0a757a30836c337bd17e1027089b796d /source3/smbd/smb2_write.c
parentae02691200a2fd20b0c227a875a0997b50fc6612 (diff)
downloadsamba-af445935555dc3fab3cefc52b375dd18b8d9bb4c.tar.gz
samba-af445935555dc3fab3cefc52b375dd18b8d9bb4c.tar.bz2
samba-af445935555dc3fab3cefc52b375dd18b8d9bb4c.zip
(Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from 64-bit Vista client
It turns out that the persistent handles are used by the Microsoft redirector to index files on oplock break requests. So even if we don't do durable handles (yet) we must set the persistent handle on create. For now just use the same handle value as we use for volatile. Jeremy.
Diffstat (limited to 'source3/smbd/smb2_write.c')
-rw-r--r--source3/smbd/smb2_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_write.c b/source3/smbd/smb2_write.c
index 7813836e65..ae98c812e9 100644
--- a/source3/smbd/smb2_write.c
+++ b/source3/smbd/smb2_write.c
@@ -96,7 +96,7 @@ NTSTATUS smbd_smb2_request_process_write(struct smbd_smb2_request *req)
if (req->compat_chain_fsp) {
/* skip check */
- } else if (in_file_id_persistent != 0) {
+ } else if (in_file_id_persistent != in_file_id_volatile) {
return smbd_smb2_request_error(req, NT_STATUS_FILE_CLOSED);
}