refactor initialisation in tls_transcript_error_propagation, so that the variables are initialised straight after they are declared

Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
Ben Taylor 2026-05-29 15:12:28 +01:00
parent cdad2f42b7
commit 0a0c86dca4

View File

@ -4415,11 +4415,10 @@ void tls_transcript_error_propagation(int endpoint,
int ret = -1;
mbedtls_test_ssl_endpoint client_ep, server_ep;
mbedtls_test_handshake_test_options client_options;
mbedtls_test_handshake_test_options server_options;
tls_abort_transcript_context abort_ctx;
mbedtls_test_init_handshake_options(&client_options);
mbedtls_test_handshake_test_options server_options;
mbedtls_test_init_handshake_options(&server_options);
tls_abort_transcript_context abort_ctx;
memset(&abort_ctx, 0, sizeof(abort_ctx));
PSA_INIT();