diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-04-18 19:30:55 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-05-12 14:47:12 +0100 |
commit | 723cbe8a73fe3644bb4d8f20d475e57f44955b54 (patch) | |
tree | ac9407bf6e13d8165a592cedddacea494dc162bc /test | |
parent | b89c81e43b88c48d7cb5ce48665bab6c36ae02ac (diff) | |
download | openssl-new-723cbe8a73fe3644bb4d8f20d475e57f44955b54.tar.gz |
QUIC CHANNEL: Do not copy terminate cause as it is not modified after termination
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20765)
Diffstat (limited to 'test')
-rw-r--r-- | test/helpers/quictestlib.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/helpers/quictestlib.c b/test/helpers/quictestlib.c index e60573eb6e..c973a8cc65 100644 --- a/test/helpers/quictestlib.c +++ b/test/helpers/quictestlib.c @@ -312,7 +312,7 @@ int qtest_shutdown(QUIC_TSERVER *qtserv, SSL *clientssl) int qtest_check_server_transport_err(QUIC_TSERVER *qtserv, uint64_t code) { - QUIC_TERMINATE_CAUSE cause; + const QUIC_TERMINATE_CAUSE *cause; ossl_quic_tserver_tick(qtserv); @@ -323,8 +323,9 @@ int qtest_check_server_transport_err(QUIC_TSERVER *qtserv, uint64_t code) return 0; cause = ossl_quic_tserver_get_terminate_cause(qtserv); - if (!TEST_true(cause.remote) - || !TEST_uint64_t_eq(cause.error_code, code)) + if (!TEST_ptr(cause) + || !TEST_true(cause->remote) + || !TEST_uint64_t_eq(cause->error_code, code)) return 0; return 1; |