Fix free_named_data_list tests

Fix copypasta in test data and fix a switcho in test code.
This commit is contained in:
Gilles Peskine 2019-09-20 21:06:27 +02:00
parent dc2db4832d
commit 88f136f98b
2 changed files with 3 additions and 3 deletions

View File

@ -432,7 +432,7 @@ Free named data list (empty)
free_named_data_list:0
Free named data list (1)
free_named_data_list:0
free_named_data_list:1
Free named data list (2)
free_named_data_list:0
free_named_data_list:2

View File

@ -547,7 +547,7 @@ void free_named_data_list( int length )
{
mbedtls_asn1_named_data *new = NULL;
ASSERT_ALLOC( new, sizeof( mbedtls_asn1_named_data ) );
head->next = new;
new->next = head;
head = new;
}