diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-08-08 06:35:34 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-08-09 08:21:35 +0200 |
commit | 0cb11efa873d6e70ef54454240df7fbdd54fd3f2 (patch) | |
tree | 79fc02a8f51bce16864bab0d28439809ae14bf2a | |
parent | a0cf42b7099097121e14cd337ea659a37ec824c4 (diff) | |
download | samba-0cb11efa873d6e70ef54454240df7fbdd54fd3f2.tar.gz samba-0cb11efa873d6e70ef54454240df7fbdd54fd3f2.tar.bz2 samba-0cb11efa873d6e70ef54454240df7fbdd54fd3f2.zip |
s3:smb2_read: don't try sendfile if encryption is used
metze
-rw-r--r-- | source3/smbd/smb2_read.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c index 150bdb8cf1..e0c615a9c3 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) || |