From: Matt Caswell Date: Wed, 8 Nov 2023 10:15:25 +0000 (+0000) Subject: After a stream has implicit length don't add more stream related frames X-Git-Tag: openssl-3.3.0-alpha1~644 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fe3010471a3263b2469ae35589357089050ce62;p=thirdparty%2Fopenssl.git After a stream has implicit length don't add more stream related frames 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 Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/22662) --- diff --git a/ssl/quic/quic_txp.c b/ssl/quic/quic_txp.c index e13501f1e9a..5500c9b3f60 100644 --- a/ssl/quic/quic_txp.c +++ b/ssl/quic/quic_txp.c @@ -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; }