]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: quic: Possible crash with "tls-ticket-keys" on QUIC bind lines
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 6 Sep 2022 15:04:55 +0000 (17:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 6 Sep 2022 15:56:53 +0000 (17:56 +0200)
commit6aec1f380e095cc36b279c4c9e1a955d01d41f6c
tree8d699fcab0cb357c452d3171265f588dcfa43fc1
parent025945f12cde56dde22baec286393fd1f048c0fc
BUG/MINOR: quic: Possible crash with "tls-ticket-keys" on QUIC bind lines

ssl_tlsext_ticket_key_cb() is called when "tls-ticket-keys" option is used on a
"bind" line. It needs to have an access to the TLS ticket keys which have been
stored into the listener bind_conf struct. The fix consists in nitializing the
<ref> variable (references to TLS secret keys) the correct way when this callback
is called for a QUIC connection. The bind_conf struct is store into the quic_conn
object (QUIC connection).

This issue may be in relation with GH #1851. Thank you for @tasavis for the report.

Must be backported to 2.6.
src/ssl_sock.c