Fix accidentally skipped test assertion

Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
Gilles Peskine
2025-06-25 14:07:55 +01:00
committed by Minos Galanakis
parent f36277558a
commit ae9a5e86f3
+3 -1
View File
@@ -5966,7 +5966,9 @@ void ssl_tls_exporter_too_early(int proto, int check_server, int state)
} else {
ret = mbedtls_test_move_handshake_to_state(&client_ep.ssl, &server_ep.ssl, state);
}
TEST_ASSERT(ret == 0 || ret == MBEDTLS_ERR_SSL_WANT_READ || MBEDTLS_ERR_SSL_WANT_WRITE);
if (ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE) {
TEST_EQUAL(ret, 0);
}
char label[] = "test-label";
uint8_t key_buffer[24] = { 0 };