Commit e6f088aa authored by Niels Möller's avatar Niels Möller
Browse files

* src/unpad.c (do_unpad): Use SSH_MAX_PACKET_FUZZ, as inflating

happens after unpadding.

Rev: src/unpad.c:1.20
parent f13cce9e
......@@ -72,7 +72,13 @@ do_unpad(struct abstract_write *w,
payload_length = packet->length - 1 - padding_length;
if (payload_length > closure->connection->rec_max_packet)
/* FIXME: This check seems redundant; fuzzy length check is done in
* read_packet.c, and a stricter check is done in connection.c. Some
* additional checking, using the SSH_MAX_PACKET constant, is also
* done in zlib.c */
if (payload_length > (closure->connection->rec_max_packet
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment