diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-08-10 21:34:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:29:28 -0500 |
commit | 708f5af2e8c10d9a0d0027e3c31fa23689e746b8 (patch) | |
tree | 1139fb6b11bfc57394fc1b98320196ed91964c9d /source/smbd/ipc.c | |
parent | 9ddacdfa131c4a4a852b3d30db1ee22d1852d0c2 (diff) | |
download | samba-708f5af2e8c10d9a0d0027e3c31fa23689e746b8.tar.gz samba-708f5af2e8c10d9a0d0027e3c31fa23689e746b8.tar.xz samba-708f5af2e8c10d9a0d0027e3c31fa23689e746b8.zip |
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
Diffstat (limited to 'source/smbd/ipc.c')
-rw-r--r-- | source/smbd/ipc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/ipc.c b/source/smbd/ipc.c index b13c18a5905..24037069292 100644 --- a/source/smbd/ipc.c +++ b/source/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; |