]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: add BUG_ON() on half_open_conn counter access from BE
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 20 Feb 2026 10:05:40 +0000 (11:05 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 20 Feb 2026 13:08:27 +0000 (14:08 +0100)
commit5f26cf162c828666797f7c3d018da0fc61b59564
tree56e9993d302e66410fca09f4eca1c8bd9d288c50
parentb8cb8e1a65c52b8111a0cb6cab9574688c0e5f57
MINOR: quic: add BUG_ON() on half_open_conn counter access from BE

half_open_conn is a proxy counter used to account for quic_conn in
half-open state : this represents a connection whose address is not yet
validated (handshake successful, or via token validation).

This counter only has sense for the frontend side. Currently, code is
safe as access is only performed if quic_conn is not yet flagged with
QUIC_FL_CONN_PEER_VALIDATED_ADDR, which is always set for backend
connections.

To better reflect this, add a BUG_ON() when half_open_conn is
incremented/decremented to ensure this never occurs for backend
connections.
src/quic_conn.c
src/quic_rx.c