diff --git a/tests/suites/test_suite_ecp.function b/tests/suites/test_suite_ecp.function index 3ad7e71941..42d69b43a2 100644 --- a/tests/suites/test_suite_ecp.function +++ b/tests/suites/test_suite_ecp.function @@ -873,6 +873,7 @@ void mbedtls_ecp_group_metadata( int id, int bit_size, int crv_type, TEST_EQUAL( mbedtls_ecp_tls_read_group_id( &read_g_id, &vbuf, olen ), 0 ); TEST_EQUAL( read_g_id, id ); + vbuf = buf; TEST_EQUAL( mbedtls_ecp_tls_read_group( &grp_read, &vbuf, olen ), 0 ); TEST_EQUAL( grp_read.id, id );