when decompressing zlib compressed packets, use Z_SYNC_FLUSH instead
authordjm <djm@openbsd.org>
Mon, 17 Jan 2022 22:56:04 +0000 (22:56 +0000)
committerdjm <djm@openbsd.org>
Mon, 17 Jan 2022 22:56:04 +0000 (22:56 +0000)
commit697e03662975d71e461c2acd4ba66528808acbeb
tree5dd5baf1edde7526ff33596982077c737aa261c1
parent4cd3c7b229defa1368a80d176f735387b2a4c0c1
when decompressing zlib compressed packets, use Z_SYNC_FLUSH instead
of Z_PARTIAL_FLUSH as the latter is not actually specified as a valid
mode for inflate(). There should be no practical change in behaviour
as the compression side ensures a flush that should make all data
available to the receiver in all cases.

repoted by lamm AT ibm.com via bz3372; ok markus
usr.bin/ssh/packet.c