]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC MULTISTREAM TEST: Correct trivial bug
authorHugo Landau <hlandau@openssl.org>
Fri, 8 Sep 2023 12:08:10 +0000 (13:08 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 13 Sep 2023 20:16:34 +0000 (22:16 +0200)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22039)

test/quic_multistream_test.c

index bc0ae12cdb17ea09ca1da79833e40abfc16395b8..b401e78e329ba008e817a4f6aa88a4c9d2d3b7e1 100644 (file)
@@ -4329,7 +4329,7 @@ static int script_61_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
         || !TEST_true(WPACKET_quic_write_vlint(&wpkt, /* stream ID */
                                                h->inject_word1))
         || !TEST_true(WPACKET_quic_write_vlint(&wpkt, 123))
-        || (h->inject_word1 == OSSL_QUIC_FRAME_TYPE_RESET_STREAM
+        || (h->inject_word0 == OSSL_QUIC_FRAME_TYPE_RESET_STREAM
            && !TEST_true(WPACKET_quic_write_vlint(&wpkt, 0)))) /* final size */
         goto err;