s3:smb2_server: check for compound based on SMBD_SMB2_NUM_IOV_PER_REQ
authorStefan Metzmacher <metze@samba.org>
Tue, 7 Aug 2012 10:47:44 +0000 (12:47 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 7 Aug 2012 16:32:45 +0000 (18:32 +0200)
metze

source3/smbd/smb2_server.c

index 04d4f7f97b7de3973ccaa12611001ce1faced7a0..aa69705ef04784dca96531d78a30f4b39ab48fd7 100644 (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.