Merge pull request #6420 from mpg/fix-assert-alloc-usage-228
backport 2.28 - Fix usage of ASSERT_ALLOC()
diff --git a/tests/suites/test_suite_asn1parse.function b/tests/suites/test_suite_asn1parse.function
index 6be2cfb..4cc0f17 100644
--- a/tests/suites/test_suite_asn1parse.function
+++ b/tests/suites/test_suite_asn1parse.function
@@ -779,7 +779,7 @@
for( i = 0; i < length; i++ )
{
mbedtls_asn1_named_data *new = NULL;
- ASSERT_ALLOC( new, sizeof( mbedtls_asn1_named_data ) );
+ ASSERT_ALLOC( new, 1 );
new->next = head;
head = new;
}