]> git.ipfire.org Git - thirdparty/haproxy.git/commit
IMPORT: slz: fix header used for empty zlib message
authorWilly Tarreau <w@1wt.eu>
Mon, 26 Jun 2023 16:00:39 +0000 (18:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 May 2025 14:43:53 +0000 (16:43 +0200)
commit31ca29eee173d4d41d32f81607b4bb6b493ee236
treef2eb94248c938517eab5536cb7e01a8648757325
parent411b04c7d39619ae36842396888ad75f6c3ba5cf
IMPORT: slz: fix header used for empty zlib message

Calling slz_rfc1950_finish() without emitting any data would result in
incorrectly emitting a gzip header (rfc1952) instead of a zlib header
(rfc1950) due to a copy-paste between the two wrappers. The impact is
almost inexistent since the zlib format is almost never used in this
context, and compressing totally empty messages is quite rare as well.
Let's take this opportunity for fixing another mistake on an RFC number
in a comment.

This is slz upstream commit 7f3fce4f33e8c2f5e1051a32a6bca58e32d4f818.
src/slz.c