]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: sample: make quic_enabled() always succeed
authorWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 08:56:37 +0000 (10:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 14:11:24 +0000 (16:11 +0200)
commit6ac63b4b9969a9685d58007a36a2fb959dcd4ea5
treec8a0e0038a509c0f9bc0c0ab9bba8d9ce70b15d0
parent5b515a38cef696a28a568fdbc41b16ac2ad863b4
BUG/MINOR: sample: make quic_enabled() always succeed

smp_fetch_quic_enabled() ends with "return smp->data.u.sint" instead of
"return 1", so it returns its boolean result as the success status of
the fetch as well. On a build without QUIC, or when the QUIC listeners
are disabled, the fetch therefore fails instead of reporting a false
boolean, and any expression using it fails to evaluate.

The issue was introduced in 2.8-dev2 with commit 33d11c464f ("MINOR:
sample: Add "quic_enabled" sample fetch") so this fix should be
backported to 2.8.
src/sample.c