]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC CHANNEL: Set reason string for missing tparams extension
authorHugo Landau <hlandau@openssl.org>
Thu, 26 Oct 2023 10:36:31 +0000 (11:36 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 2 Nov 2023 13:22:04 +0000 (14:22 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22523)

ssl/quic/quic_channel.c

index a3fcac169685f447e721c7f27091527778219230..d3b7947fb462587200512c9463a16599eb40ec76 100644 (file)
@@ -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,