BUG/MAJOR: mux-quic: properly fix BUG_ON on empty STREAM emission
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 2 Jan 2025 09:59:43 +0000 (10:59 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 6 Jan 2025 10:32:18 +0000 (11:32 +0100)
commita7c6776f4814f2707239980e2990a1ca6b277e11
tree517bb626c7383e468a13f2e7c922a246da579080
parent18c745d9a70f6f36d271abe8070874cef6cdcbd1
BUG/MAJOR: mux-quic: properly fix BUG_ON on empty STREAM emission

Properly fix BUG_ON() occurence when QUIC MUX emits only empty STREAM
frames. This was addressed by a previous patch but it causes another
regression so a revert was needed.

BUG_ON() on qcc_build_frms() return value is invalid. Indeed,
qcc_build_frms() may return 0, but this does not imply that frame list
is empty, as encoded frames can have a zero length payload. As such,
simply remove this invalid BUG_ON().

This must be backported up to 3.1.

(cherry picked from commit ddfd8031f895b448604cbc259f74e6cb7b086b0b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/mux_quic.c