]> git.kaiwu.me - haproxy.git/commit
MINOR: flt-decomp: Don't instantiate a filter without applicable direction
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 5 Oct 2026 14:53:37 +0000 (16:53 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:35 +0000 (16:17 +0200)
commit49ac622d992fadf9ecc97a8c648dc1b3f8e5a12c
treeb8f3920be68dcd802a3bc656abb0b2f56511805f
parent5aacf4a61a23753d3a10384934dbf3831ada876a
MINOR: flt-decomp: Don't instantiate a filter without applicable direction

decomp_strm_init() asserted that the filter configuration was never
NULL. This holds for the legacy filter configurations, which always carry
the decompression direction of their proxy. But an implicit instance
inherited by a proxy without the matching capability will keep its metadata
while having no applicable direction, leaving its configuration NULL when
the instance is finalized.

Drop the assertion and handle a NULL configuration like a direction disabled
with the "none" mode or without any algorithm: the filter is not attached to
the stream and the instance remains as metadata. The decompression behavior
is unchanged, such a filter was already ignored on every stream.
src/flt_decomp.c