]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
quic: pass is_write to quic_classify_stream in quic_get_stream_error_code
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Fri, 10 Oct 2025 12:45:50 +0000 (20:45 +0800)
committerTomas Mraz <tomas@openssl.org>
Tue, 14 Oct 2025 16:22:06 +0000 (18:22 +0200)
Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28820)

(cherry picked from commit 2466b57b893503f602622ad4f7cba1f3a2585ec0)

ssl/quic/quic_impl.c

index 98b6a0a44160f845e66339d65482ff34e19946d2..32b8fb55ceb04c9318d8a60a8f63e744d355e8d2 100644 (file)
@@ -3449,7 +3449,7 @@ static int quic_get_stream_error_code(SSL *ssl, int is_write,
     if (!expect_quic_with_stream_lock(ssl, /*remote_init=*/-1, /*io=*/0, &ctx))
         return -1;
 
-    quic_classify_stream(ctx.qc, ctx.xso->stream, /*is_write=*/0,
+    quic_classify_stream(ctx.qc, ctx.xso->stream, is_write,
                          &state, app_error_code);
 
     quic_unlock(ctx.qc);