Fix unchecked allocation in test_suite_ssl
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function
index 464ae06..c5ded5a 100644
--- a/tests/suites/test_suite_ssl.function
+++ b/tests/suites/test_suite_ssl.function
@@ -873,9 +873,9 @@
}
cert = &( ep->cert );
- cert->ca_cert = mbedtls_calloc( 1, sizeof(mbedtls_x509_crt) );
- cert->cert = mbedtls_calloc( 1, sizeof(mbedtls_x509_crt) );
- cert->pkey = mbedtls_calloc( 1, sizeof(mbedtls_pk_context) );
+ ASSERT_ALLOC( cert->ca_cert, sizeof(mbedtls_x509_crt) );
+ ASSERT_ALLOC( cert->cert, sizeof(mbedtls_x509_crt) );
+ ASSERT_ALLOC( cert->pkey, sizeof(mbedtls_pk_context) );
mbedtls_x509_crt_init( cert->ca_cert );
mbedtls_x509_crt_init( cert->cert );