]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: ssl: Make sure the alpn length is small enough
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 1 Jun 2026 13:04:09 +0000 (15:04 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 1 Jun 2026 12:47:45 +0000 (14:47 +0200)
commit849710713200592ab76adeae924eb7e34a5cf1ad
tree2de2cc6a8ce41e60668cd4c6fa4d6f5bddb80da2
parent030a2bfeeb004862ce6b38a4964357e71a709ffa
BUG/MEDIUM: ssl: Make sure the alpn length is small enough

When the check for server hash was introduced to make sure we're using
the right alpn, the logic to store the new alpn was flawed. We should
always check that the new alpn length is small enough to fit in the
buffer, no matter if the server hash is not the same or not. So always
check the length first, and only check if the alpn or the server changed
after.
This should be backported whenever commit
de3f245df032073dec134f5d0f597d73a7b2575d has been backported.
src/ssl_sock.c