From 68b64cd64c9ca7e8327d00325020a39c4389c477 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 9 Dec 2021 18:27:01 +0000 Subject: [PATCH] Add checked return to cipher setup Signed-off-by: Paul Elliott --- tests/suites/test_suite_cipher.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_cipher.function b/tests/suites/test_suite_cipher.function index 76e474f21..b50422e39 100644 --- a/tests/suites/test_suite_cipher.function +++ b/tests/suites/test_suite_cipher.function @@ -102,7 +102,7 @@ void cipher_invalid_param_unconditional( ) (void)valid_mode; /* In some configurations this is unused */ mbedtls_cipher_init( &valid_ctx ); - mbedtls_cipher_setup( &valid_ctx, valid_info ); + TEST_ASSERT( mbedtls_cipher_setup( &valid_ctx, valid_info ) == 0 ); mbedtls_cipher_init( &invalid_ctx ); /* mbedtls_cipher_setup() */