summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-10-26 11:36:31 +0100
committerTomas Mraz <tomas@openssl.org>2023-11-02 14:22:04 +0100
commitf94cacb70b677462ecca79314a3d9714f8c0faba (patch)
tree1d3f787aeaf8562630860c82a7b30c1c2c82b0b9 /ssl
parent55936eee86ce31e80fa49d11757f61fe9e20821e (diff)
QUIC CHANNEL: Set reason string for missing tparams extension
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22523)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/quic/quic_channel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c
index a3fcac1696..d3b7947fb4 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,