Fix another wrong check for errors in test code

This commit is contained in:
Manuel Pégourié-Gonnard 2019-05-24 09:52:10 +02:00 committed by Jarno Lamsa
parent 7b3a8875a4
commit b40799035b

View file

@ -789,7 +789,7 @@ void ssl_serialise_session_load_save( int ticket_len, char *crt_file )
/* Allocate second buffer and serialise to it */
buf2 = mbedtls_calloc( 1, len0 );
TEST_ASSERT( buf1 != NULL );
TEST_ASSERT( buf2 != NULL );
TEST_ASSERT( mbedtls_ssl_session_save( &session, buf2, len0, &len2 )
== 0 );