From: Hugo Landau Date: Thu, 26 Oct 2023 10:36:31 +0000 (+0100) Subject: QUIC CHANNEL: Set reason string for missing tparams extension X-Git-Tag: openssl-3.3.0-alpha1~684 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f94cacb70b677462ecca79314a3d9714f8c0faba;p=thirdparty%2Fopenssl.git QUIC CHANNEL: Set reason string for missing tparams extension Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/22523) --- diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c index a3fcac16968..d3b7947fb46 100644 --- a/ssl/quic/quic_channel.c +++ b/ssl/quic/quic_channel.c @@ -1283,8 +1283,10 @@ static int ch_on_transport_params(const unsigned char *params, QUIC_CONN_ID cid; const char *reason = "bad transport parameter"; - if (ch->got_remote_transport_params) + if (ch->got_remote_transport_params) { + reason = "multiple transport parameter extensions"; goto malformed; + } if (!PACKET_buf_init(&pkt, params, params_len)) { ossl_quic_channel_raise_protocol_error(ch, QUIC_ERR_INTERNAL_ERROR, 0,