mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-07-17 04:45:51 +08:00
Fix accidentally skipped test assertion
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
ed87da7ad7
commit
042ee3b318
@ -5939,7 +5939,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 };
|
||||
|
Loading…
x
Reference in New Issue
Block a user