]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cfgparse-quic: fix bbr initialization
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 21 Nov 2024 09:24:34 +0000 (10:24 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 21 Nov 2024 09:49:16 +0000 (10:49 +0100)
commit7b23c9075ce3d16e020c574b5e0a229222c136fe
tree1bcca5efcdae5189d958d9c3b5d399b9d8425645
parente58a30d3698cd21b00616392485446150ac29c81
BUG/MINOR: cfgparse-quic: fix bbr initialization

To support pacing with cubic, a recent change was introduced to render
quic_cc_algo on bind line dynamically allocated, instead of pointing to
a globally defined variable. This allows customization of the algorithm
callbacks per bind line.

This was not correctly used for BBR as it was set to point to the global
quic_cc_algo_bbr. This causes a segfault on haproxy process closing. Fix
this by properly initializing BBR as other algorithms.

This should fix coverity report from github issue #2786.
src/cfgparse-quic.c