fixed error in the ordering of the certinfo_t records in the ocsp cache that caused multiple entries of the same serial number to be created. This was caused by the iterator_t method insert_after() that inserts a record in the first instead of the last position of a linked list if the end of the list is reached. Fix: use linked_list_t method insert_last() instead.

This commit is contained in:
Andreas Steffen
2007-12-12 20:25:50 +00:00
parent c2bb1ecacb
commit 35b2b1e334
+1 -1
View File
@@ -654,7 +654,7 @@ static cert_status_t verify_by_ocsp(private_ca_info_t* this,
if (comparison > 0)
{
iterator->insert_after(iterator, (void *)cached_certinfo);
this->certinfos->insert_last(this->certinfos, (void *)cached_certinfo);
}
else
{