From: Matt Caswell Date: Mon, 10 Jul 2023 10:12:50 +0000 (+0100) Subject: Fix test_quic_write_read() X-Git-Tag: openssl-3.2.0-alpha1~482 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff9728c6d5d23ebaa73cb729c8110c0582e66280;p=thirdparty%2Fopenssl.git Fix test_quic_write_read() 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 Reviewed-by: Hugo Landau Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/21409) --- diff --git a/test/quicapitest.c b/test/quicapitest.c index 64b53c87f4c..901cc21677b 100644 --- a/test/quicapitest.c +++ b/test/quicapitest.c @@ -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)))