summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-08 06:17:33 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-08 12:52:50 +0200
commit644eab32af2ad9926e665642ffd212d0472b3d19 (patch)
treea4e0c14f481b59a3c2dc5168853a24f6e494675e
parent2b9dd9049e76b170e0c8fe5e2534770e8beacd28 (diff)
downloadsamba-644eab32af2ad9926e665642ffd212d0472b3d19.tar.gz
samba-644eab32af2ad9926e665642ffd212d0472b3d19.tar.bz2
samba-644eab32af2ad9926e665642ffd212d0472b3d19.zip
s3:smb2_read: use SMBD_SMB2_NUM_IOV_PER_REQ when checking for sendfile() support
metze
-rw-r--r--source3/smbd/smb2_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c
index 1d6b8588c5..150bdb8cf1 100644
--- a/source3/smbd/smb2_read.c
+++ b/source3/smbd/smb2_read.c
@@ -276,7 +276,7 @@ static NTSTATUS schedule_smb2_sendfile_read(struct smbd_smb2_request *smb2req,
if (!lp__use_sendfile(SNUM(fsp->conn)) ||
smb2req->do_signing ||
- smb2req->in.vector_count != 4 ||
+ smb2req->in.vector_count < (2*SMBD_SMB2_NUM_IOV_PER_REQ) ||
(fsp->base_fsp != NULL) ||
(fsp->wcp != NULL) ||
(!S_ISREG(fsp->fsp_name->st.st_ex_mode)) ||