summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/ipc.c4
-rw-r--r--source3/smbd/trans2.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index b13c18a5905..24037069292 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -488,7 +488,7 @@ void reply_trans(connection_struct *conn, struct smb_request *req)
START_PROFILE(SMBtrans);
- if (SVAL(req->inbuf, smb_wct) < 10) {
+ if (req->wct < 14) {
reply_nterror(req, NT_STATUS_INVALID_PARAMETER);
END_PROFILE(SMBtrans);
return;
@@ -667,7 +667,7 @@ void reply_transs(connection_struct *conn, struct smb_request *req)
show_msg((char *)req->inbuf);
- if (req->wct < 10) {
+ if (req->wct < 8) {
reply_nterror(req, NT_STATUS_INVALID_PARAMETER);
END_PROFILE(SMBtranss);
return;
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 26769e53d6d..f65d833ab06 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -7028,7 +7028,7 @@ void reply_trans2(connection_struct *conn, struct smb_request *req)
START_PROFILE(SMBtrans2);
- if (req->wct < 8) {
+ if (req->wct < 14) {
reply_nterror(req, NT_STATUS_INVALID_PARAMETER);
END_PROFILE(SMBtrans2);
return;