summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-05-23 12:23:06 +0100
committerPauli <pauli@openssl.org>2023-06-16 09:26:28 +1000
commite3e9794aa49f61e5b034608488034daa01125c85 (patch)
tree1e49edb14740080d29ecab8175ed9269ff6180c0 /test
parent754d2282cd50fef14971605d7151623bb11e3fd6 (diff)
QUIC APL: Correct implementation of time callback override
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21029)
Diffstat (limited to 'test')
-rw-r--r--test/quic_tserver_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/quic_tserver_test.c b/test/quic_tserver_test.c
index eefb5ae743..beed40d76c 100644
--- a/test/quic_tserver_test.c
+++ b/test/quic_tserver_test.c
@@ -165,7 +165,8 @@ static int do_test(int use_thread_assist, int use_fake_time, int use_inject)
goto err;
if (use_fake_time)
- ossl_quic_conn_set_override_now_cb(c_ssl, fake_now, NULL);
+ if (!TEST_true(ossl_quic_conn_set_override_now_cb(c_ssl, fake_now, NULL)))
+ goto err;
/* 0 is a success for SSL_set_alpn_protos() */
if (!TEST_false(SSL_set_alpn_protos(c_ssl, alpn, sizeof(alpn))))