Use correctly formatted ALPN data in tserver
The QUIC test server was using incorrectly formatted ALPN data. With the
previous implementation of SSL_select_next_proto this went unnoticed. With
the new stricter implemenation it was failing.
Follow on from CVE-2024-5535
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24716)
(cherry picked from commit fc8ff75814
)
This commit is contained in:
parent
c015a9dcb0
commit
41697a6fdc
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ static int alpn_select_cb(SSL *ssl, const unsigned char **out,
|
|||
|
||||
if (srv->args.alpn == NULL) {
|
||||
alpn = alpndeflt;
|
||||
alpnlen = sizeof(alpn);
|
||||
alpnlen = sizeof(alpndeflt);
|
||||
} else {
|
||||
alpn = srv->args.alpn;
|
||||
alpnlen = srv->args.alpnlen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue