]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: quic/ssl: report SSL_CTX allocation failure
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 18 Nov 2026 14:36:42 +0000 (15:36 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 18 Nov 2026 14:53:46 +0000 (15:53 +0100)
commite49911ef6a2f1eded2e672bdaf71a4f3775b2c70
tree2eb0a81dfcbed38de86426640f81a39dfbd75a93
parentf79015290ed0b7b2e56968b84c0ae10cbfb35af9
BUG/MINOR: quic/ssl: report SSL_CTX allocation failure

ssl_quic_initial_ctx() stores the result of SSL_CTX_new() into
bind_conf->initial_ctx without checking it, unlike ssl_sock_initial_ctx()
which alerts and returns an error. On allocation failure the QUIC bind
therefore crashed without any diagnostic.

Report the failure the same way the TCP path does.

Must be backported to all stable versions.
src/quic_ssl.c