]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-spop: Respect the negociated max-frame-size value to send frames
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 22 Apr 2025 13:27:12 +0000 (15:27 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 22 Apr 2025 14:14:47 +0000 (16:14 +0200)
commitce8c2d359bc338a0ac88f117bca440c93b749f15
treea2ee0542e3a7c991f3ec50e56e8cdc78a7329abb
parenta56feffc6fb23ec8c869cdfdbc2cc10144975b3a
BUG/MEDIUM: mux-spop: Respect the negociated max-frame-size value to send frames

When a SPOP connection is opened, the maximum size for frames is negociated.
This negociated size is properly used when a frame is received and if a too
big frame is detected, an error is triggered. However, the same was not
performed on the sending path. No check was performed on frames sent to the
agent. So it was possible to send frames bigger than the maximum size
supported by the the SPOE agent.

Now, the size of NOTIFY and DISCONNECT frames is checked before sending them
to the agent.

Thanks to Miroslav to have reported the issue.

This patch must be backported to 3.1.
src/mux_spop.c