summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-23 00:09:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:05 -0500
commitd2a62ab22ea36f6b6847f86a3de8160bb3496862 (patch)
treeb95c16d07598edcd6ab251c5bc2c1fb6e02f328a /source4
parentded4440335452f421ae3c21e66a1493959757db9 (diff)
downloadsamba-d2a62ab22ea36f6b6847f86a3de8160bb3496862.tar.gz
samba-d2a62ab22ea36f6b6847f86a3de8160bb3496862.tar.bz2
samba-d2a62ab22ea36f6b6847f86a3de8160bb3496862.zip
r3916: w2k3 does not check the max_setup count in nttrans requests
(This used to be commit 671a864d8f3548b052ffa33fa8fb0bbf3a0e3970)
Diffstat (limited to 'source4')
-rw-r--r--source4/smb_server/nttrans.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/smb_server/nttrans.c b/source4/smb_server/nttrans.c
index 27fb4d22db..abb66a24ca 100644
--- a/source4/smb_server/nttrans.c
+++ b/source4/smb_server/nttrans.c
@@ -413,10 +413,13 @@ void reply_nttrans(struct smbsrv_request *req)
return;
}
+#if 0
+ /* w2k3 does not check the max_setup count */
if (trans.out.setup_count > trans.in.max_setup) {
req_reply_error(req, NT_STATUS_BUFFER_TOO_SMALL);
return;
}
+#endif
if (trans.out.params.length > trans.in.max_param) {
status = NT_STATUS_BUFFER_TOO_SMALL;
trans.out.params.length = trans.in.max_param;