]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: spoe: Properly detect and skip empty NOTIFY frames
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 Aug 2025 13:38:42 +0000 (15:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 Aug 2025 14:01:50 +0000 (16:01 +0200)
commitdc6e8dde231990d6f999c64117a301fc66a7256c
treea900b2eab886ab55d6ff333b849b9a352bff658e
parent2c7e05f80e3b4bacad84eb213b9db3bc5d8963dc
BUG/MINOR: spoe: Properly detect and skip empty NOTIFY frames

Since the SPOE was refactored, the detection of empty NOTIFY frames is
broken. So it is possible to send a NOTIFY frames to an agent with no
message at all. The bug happens because the frame type is now added to the
buffer before the messages encoding. So the buffer is never really empty.

To fix the issue, the condition to detect empty frame was adapted.

This patch must be backported as far as 3.1.
src/flt_spoe.c