summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2023-11-08 10:15:25 +0000
committerHugo Landau <hlandau@openssl.org>2023-11-09 12:33:09 +0000
commit7fe3010471a3263b2469ae35589357089050ce62 (patch)
tree28761f6fc80a968383811ac97a48ec077fe00743
parente389f56faeecad6b80f06695c0b753b355b0a5fc (diff)
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 <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22662)
-rw-r--r--ssl/quic/quic_txp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/quic/quic_txp.c b/ssl/quic/quic_txp.c
index e13501f1e9..5500c9b3f6 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;
}