Mercurial > dropbear
diff packet.c @ 556:ccdc4c6183c0
- Payload length doesn't include macsize.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 26 Jul 2009 16:11:27 +0000 |
parents | 21490eea261d |
children | 005530560594 |
line wrap: on
line diff
--- a/packet.c Sun Jul 26 15:39:47 2009 +0000 +++ b/packet.c Sun Jul 26 16:11:27 2009 +0000 @@ -261,7 +261,7 @@ /* 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"); }