Commit 01fa9c4cba for openssl.org

commit 01fa9c4cba0938d6360bac6ec074f52dc93e6787
Author: Tomas Mraz <tomas@openssl.foundation>
Date:   Mon Sep 7 09:48:29 2026 +0200

    quic_multistream_test.c: Fix test failure in fuzzing build

    There might be other errors on the stack before the
    error that we actually want to check and care about.

    Reviewed-by: Daniel Kubec <kubec@openssl.foundation>
    Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
    Merge-date: Mon Sep  7 15:07:36 2026
    Merged-from: https://github.com/openssl/openssl/pull/32717

diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c
index e1995dfa6b..e8d50a6be1 100644
--- a/test/quic_multistream_test.c
+++ b/test/quic_multistream_test.c
@@ -1364,7 +1364,7 @@ static int run_script_worker(struct helper *h, const struct script_op *script,
                 goto out;

             if (allow_fail && c_stream == NULL) {
-                if (!TEST_size_t_eq(ERR_GET_REASON(ERR_get_error()),
+                if (!TEST_size_t_eq(ERR_GET_REASON(ERR_peek_last_error()),
                         SSL_R_STREAM_COUNT_LIMITED))
                     goto out;