]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: Avoid starting the mux if no ALPN sent by the client
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 13 Apr 2022 14:20:09 +0000 (16:20 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 13 Apr 2022 14:48:43 +0000 (16:48 +0200)
commitbc964bd1aecab858bb74a24240cd7b2836e229ab
treea3b9772ff96ee9ca8b8dad105f20dccb6611b4ad
parent186354beac56b885de7ff42870ada21233889949
BUG/MINOR: quic: Avoid starting the mux if no ALPN sent by the client

If the client does not sent an ALPN, the SSL ALPN negotiation callback
is not called. However, the handshake is reported as successful. Check
just after SSL_do_handshake if an ALPN was negotiated. If not, emit a
CONNECTION_CLOSE with a TLS alert to close the connection.

This prevent a crash in qcc_install_app_ops() called with null as second
parameter value.
src/xprt_quic.c