diff --git a/ssh1bpp.c b/ssh1bpp.c index f11e58cb..381da1e3 100644 --- a/ssh1bpp.c +++ b/ssh1bpp.c @@ -144,9 +144,9 @@ static void ssh1_bpp_handle_input(BinaryPacketProtocol *bpp) s->len = toint(GET_32BIT_MSB_FIRST(lenbuf)); } - if (s->len < 0 || s->len > 262144) { /* SSH1.5-mandated max size */ + if (s->len < 5 || s->len > 262144) { /* SSH1.5-mandated max size */ ssh_sw_abort(s->bpp.ssh, - "Extremely large packet length from remote suggests" + "Out-of-range packet length from remote suggests" " data stream corruption"); crStopV; }