summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-07 12:56:23 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-07 18:32:46 +0200
commitbfc87a4a76294b26f6031547e18228afd4d535e5 (patch)
treeaf8b4a40a49dea72f2ce4916a729fd29dcbcebae /source3/smbd
parent5730272690b5f4d854a4c7e8b0d68040b159d6aa (diff)
downloadsamba-bfc87a4a76294b26f6031547e18228afd4d535e5.tar.gz
samba-bfc87a4a76294b26f6031547e18228afd4d535e5.tar.bz2
samba-bfc87a4a76294b26f6031547e18228afd4d535e5.zip
s3:smb2_server: check for compound based on SMBD_SMB2_NUM_IOV_PER_REQ
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index acc998bfd0..9766d48f72 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -2038,7 +2038,7 @@ static NTSTATUS smbd_smb2_request_reply(struct smbd_smb2_request *req)
}
/* I am a sick, sick man... :-). Sendfile hack ... JRA. */
- if (req->out.vector_count == 4 &&
+ if (req->out.vector_count < (2*SMBD_SMB2_NUM_IOV_PER_REQ) &&
outdyn->iov_base == NULL && outdyn->iov_len != 0) {
/* Dynamic part is NULL. Chop it off,
We're going to send it via sendfile. */