diff --git a/tests/suites/test_suite_ecjpake.function b/tests/suites/test_suite_ecjpake.function index 38f190de2..fefd1605c 100644 --- a/tests/suites/test_suite_ecjpake.function +++ b/tests/suites/test_suite_ecjpake.function @@ -247,7 +247,7 @@ void read_bad_md( data_t *msg ) mbedtls_ecjpake_init( &corrupt_ctx ); TEST_ASSERT( mbedtls_ecjpake_setup( &corrupt_ctx, any_role, MBEDTLS_MD_SHA256, MBEDTLS_ECP_DP_SECP256R1, pw, pw_len ) == 0 ); - corrupt_ctx.md_info = NULL; + corrupt_ctx.md_info = MBEDTLS_MD_INVALID_HANDLE; TEST_ASSERT( mbedtls_ecjpake_read_round_one( &corrupt_ctx, msg->x, msg->len ) == MBEDTLS_ERR_MD_BAD_INPUT_DATA );