- Payload length doesn't include macsize.

--HG--
extra : convert_revision : 98ac17a573ab350cbd6e358b3943237d2ad5c9cf
This commit is contained in:
Matt Johnston
2009-07-26 16:11:27 +00:00
parent 3608775306
commit bcd541d65f
2 changed files with 2 additions and 2 deletions

View File

@@ -261,7 +261,7 @@ void decrypt_packet() {
/* payload length */
/* - 4 - 1 is for LEN and PADLEN values */
len = ses.readbuf->len - padlen - 4 - 1;
len = ses.readbuf->len - padlen - 4 - 1 - macsize;
if ((len > RECV_MAX_PAYLOAD_LEN) || (len < 1)) {
dropbear_exit("bad packet size");
}