From c8b3030f4042eb0b5f57415ad23d99d0cb28460e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 9 Jun 2009 18:47:26 +0200 Subject: s3:smbd: skip file handle checks for SMB2 compounded requests metze --- source3/smbd/smb2_ioctl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/smbd/smb2_ioctl.c') diff --git a/source3/smbd/smb2_ioctl.c b/source3/smbd/smb2_ioctl.c index 9ff6c8ea97..a1f2885668 100644 --- a/source3/smbd/smb2_ioctl.c +++ b/source3/smbd/smb2_ioctl.c @@ -83,8 +83,10 @@ NTSTATUS smbd_smb2_request_process_ioctl(struct smbd_smb2_request *req) in_input_buffer.data = (uint8_t *)req->in.vector[i+2].iov_base; in_input_buffer.length = in_input_length; - if (in_file_id_persistent == UINT64_MAX && - in_file_id_volatile == UINT64_MAX) { + if (req->compat_chain_fsp) { + /* skip check */ + } else if (in_file_id_persistent == UINT64_MAX && + in_file_id_volatile == UINT64_MAX) { /* without a handle */ } else if (in_file_id_persistent != 0) { return smbd_smb2_request_error(req, NT_STATUS_FILE_CLOSED); -- cgit