tests: ssl: Fix coverity deadcode issue
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
7b8404608a
commit
585cd70d04
1 changed files with 3 additions and 8 deletions
|
@ -2101,14 +2101,9 @@ void perform_handshake( handshake_test_options* options )
|
|||
TEST_ASSERT( mbedtls_ssl_is_handshake_over( &client.ssl ) == 1 );
|
||||
|
||||
/* Make sure server state is moved to HANDSHAKE_OVER also. */
|
||||
TEST_ASSERT( mbedtls_move_handshake_to_state( &(server.ssl),
|
||||
&(client.ssl),
|
||||
MBEDTLS_SSL_HANDSHAKE_OVER )
|
||||
== expected_handshake_result );
|
||||
if( expected_handshake_result != 0 )
|
||||
{
|
||||
goto exit;
|
||||
}
|
||||
TEST_EQUAL( mbedtls_move_handshake_to_state( &(server.ssl),
|
||||
&(client.ssl),
|
||||
MBEDTLS_SSL_HANDSHAKE_OVER ), 0 );
|
||||
|
||||
TEST_ASSERT( mbedtls_ssl_is_handshake_over( &server.ssl ) == 1 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue