]> git.kaiwu.me - haproxy.git/commit
MINOR: quic: initialize the flags of the QUIC ssl_sock_ctx
authorDongwon Jang <contact@dongwonjang.com>
Thu, 3 Dec 2026 06:34:07 +0000 (15:34 +0900)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 3 Dec 2026 09:24:57 +0000 (10:24 +0100)
commitaee75414e62f68f2185c2515d4bec307ec1755dc
tree3e960b5b744422adf19a302b282cdc97c3a29041
parent254452eb4760c5f6efca9ff76cc7c8189408b626
MINOR: quic: initialize the flags of the QUIC ssl_sock_ctx

qc_alloc_ssl_sock_ctx() takes the ssl_sock_ctx from a pool and does not
initialize its <flags>, so they may be those of a previous connection.
Nothing reads these flags on a QUIC connection for now:
SSL_SOCK_F_HAS_ALPN is set there by the ALPN callback but is only
tested by the TCP I/O handler.

Let's initialize them so that a flag can be read from a QUIC connection
as well. Otherwise the flag added by the next commit could be seen on a
QUIC connection which did not set it.
src/quic_ssl.c