(Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from 64-bit...
[ira/wip.git] / source3 / smbd / smb2_ioctl.c
index c7775b4e4dadd6890289f3846655224ffebdc9b9..672965f4704ca5e885d4399d4dd30aab5ea996e2 100644 (file)
@@ -88,7 +88,7 @@ NTSTATUS smbd_smb2_request_process_ioctl(struct smbd_smb2_request *req)
        } else if (in_file_id_persistent == UINT64_MAX &&
                   in_file_id_volatile == UINT64_MAX) {
                /* without a handle */
-       } 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);
        }