]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix test_quic_write_read()
authorMatt Caswell <matt@openssl.org>
Mon, 10 Jul 2023 10:12:50 +0000 (11:12 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 10 Jul 2023 10:40:12 +0000 (11:40 +0100)
Fix the "test 2" case of test_quic_write_read(). It is intended to be run
in blocking mode.

The result of a bad interaction between #21087 and #21332

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21409)

test/quicapitest.c

index 64b53c87f4c96d202319d2ba2b405a50324a9179..901cc21677bded24689e5b396bdead070915297d 100644 (file)
@@ -60,7 +60,7 @@ static int test_quic_write_read(int idx)
 
     if (!TEST_ptr(cctx)
             || !TEST_true(qtest_create_quic_objects(libctx, cctx, cert, privkey,
-                                                    idx == 1 ? QTEST_FLAG_BLOCK : 0,
+                                                    idx >= 1 ? QTEST_FLAG_BLOCK : 0,
                                                     &qtserv, &clientquic, NULL))
             || !TEST_true(SSL_set_tlsext_host_name(clientquic, "localhost"))
             || !TEST_true(qtest_create_quic_connection(qtserv, clientquic)))