1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3:smb2_server: check for compound based on SMBD_SMB2_NUM_IOV_PER_REQ

metze
This commit is contained in:
Stefan Metzmacher 2012-08-07 12:47:44 +02:00
parent 2da62179de
commit 727b1d1fa8

View File

@ -1188,10 +1188,9 @@ NTSTATUS smbd_smb2_request_pending_queue(struct smbd_smb2_request *req,
print_req_vectors(req);
}
if (req->out.vector_count > 4) {
struct iovec *outvec = NULL;
/* This is a compound reply. We
if (req->out.vector_count >= (2*SMBD_SMB2_NUM_IOV_PER_REQ)) {
/*
* This is a compound reply. We
* must do an interim response
* followed by the async response
* to match W2K8R2.