After a stream has implicit length don't add more stream related frames
authorMatt Caswell <matt@openssl.org>
Wed, 8 Nov 2023 10:15:25 +0000 (10:15 +0000)
committerHugo Landau <hlandau@openssl.org>
Thu, 9 Nov 2023 12:33:09 +0000 (12:33 +0000)
Once we have decided that a stream has an implicit length then we should
treat the packet as full and not try to add any more stream related frames
to the packet.

Fixes #22658

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22662)

ssl/quic/quic_txp.c

index e13501f1e9af4266ada0c088ab3516cee699339b..5500c9b3f60fcac8768e3c4167ea0e9d5e5a242e 100644 (file)
@@ -2283,6 +2283,7 @@ static int txp_generate_stream_frames(OSSL_QUIC_TX_PACKETISER *txp,
 
             shdr->len = payload_len_explicit;
         } else {
+            *packet_full = 1;
             shdr->has_explicit_len = 0;
             shdr->len = payload_len_implicit;
         }