git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2da6217
)
s3:smb2_server: check for compound based on SMBD_SMB2_NUM_IOV_PER_REQ
author
Stefan Metzmacher
<metze@samba.org>
Tue, 7 Aug 2012 10:47:44 +0000
(12:47 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 7 Aug 2012 16:32:45 +0000
(18:32 +0200)
metze
source3/smbd/smb2_server.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_server.c
b/source3/smbd/smb2_server.c
index 04d4f7f97b7de3973ccaa12611001ce1faced7a0..aa69705ef04784dca96531d78a30f4b39ab48fd7 100644
(file)
--- a/
source3/smbd/smb2_server.c
+++ b/
source3/smbd/smb2_server.c
@@
-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.