1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

r24320: Fix the wct checks in reply_trans2 and the reply_trans calls

No idea what I've been smoking here.

Thanks to Stefan for closely looking
(This used to be commit 708f5af2e8c10d9a0d0027e3c31fa23689e746b8)
This commit is contained in:
Volker Lendecke 2007-08-10 21:34:55 +00:00 committed by Gerald (Jerry) Carter
parent d465b468c1
commit 23998e1da8
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;