From f94cacb70b677462ecca79314a3d9714f8c0faba Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Thu, 26 Oct 2023 11:36:31 +0100 Subject: [PATCH] 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) --- ssl/quic/quic_channel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.47.2