]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smb2_read: don't try sendfile if encryption is used
authorStefan Metzmacher <metze@samba.org>
Wed, 8 Aug 2012 04:35:34 +0000 (06:35 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 9 Aug 2012 06:21:35 +0000 (08:21 +0200)
metze

source3/smbd/smb2_read.c

index 150bdb8cf191806d804e44e26743af4a89d35983..e0c615a9c3fbb52518c334fec76f214ac8681fd9 100644 (file)
@@ -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) ||