diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-10-26 11:36:31 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-11-02 14:23:19 +0100 |
commit | 3c7c4866464cfb872b91ba204e3c64d4da9e2fdf (patch) | |
tree | a495609f1d02bc2986443e96494020f0ee6cfc55 /ssl | |
parent | b45d053fcd124854ea5bb7a24bea6a67d31489b0 (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)
(cherry picked from commit f94cacb70b677462ecca79314a3d9714f8c0faba)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/quic/quic_channel.c | 4 |
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, |