From: Stefan Metzmacher Date: Wed, 8 Aug 2012 04:35:34 +0000 (+0200) Subject: s3:smb2_read: don't try sendfile if encryption is used X-Git-Tag: ldb-1.1.10~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0cb11efa873d6e70ef54454240df7fbdd54fd3f2;p=thirdparty%2Fsamba.git s3:smb2_read: don't try sendfile if encryption is used metze --- diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c index 150bdb8cf19..e0c615a9c3f 100644 --- a/source3/smbd/smb2_read.c +++ b/source3/smbd/smb2_read.c @@ -276,6 +276,7 @@ static NTSTATUS schedule_smb2_sendfile_read(struct smbd_smb2_request *smb2req, if (!lp__use_sendfile(SNUM(fsp->conn)) || smb2req->do_signing || + smb2req->do_encryption || smb2req->in.vector_count < (2*SMBD_SMB2_NUM_IOV_PER_REQ) || (fsp->base_fsp != NULL) || (fsp->wcp != NULL) ||