diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-04-28 16:56:34 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-05-24 10:34:47 +0100 |
commit | e8142d2ce8383329e6a71639d154191c1515ba55 (patch) | |
tree | 8e15fdf8b4ac7f1ae05c0b6f1b60900f438ec4f5 | |
parent | 5915a900af86db8625caa77a02fd50cf9a3b3e1b (diff) |
QUIC QSM: Correct the logic for determining stream count limits
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20856)
-rw-r--r-- | ssl/quic/quic_stream_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/quic/quic_stream_map.c b/ssl/quic/quic_stream_map.c index 138a063bf6..be2505d55e 100644 --- a/ssl/quic/quic_stream_map.c +++ b/ssl/quic/quic_stream_map.c @@ -280,8 +280,8 @@ void ossl_quic_stream_map_update_state(QUIC_STREAM_MAP *qsm, QUIC_STREAM *s) int should_be_active, allowed_by_stream_limit = 1; if (qsm->get_stream_limit_cb != NULL - && (s->type & QUIC_STREAM_INITIATOR_CLIENT) != 0) { - int uni = ((s->type & QUIC_STREAM_DIR_UNI) != 0); + && ossl_quic_stream_is_server_init(s) == qsm->is_server) { + int uni = !ossl_quic_stream_is_bidi(s); uint64_t stream_limit, stream_ordinal = s->id >> 2; stream_limit |