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:
@@ -654,7 +654,7 @@ static cert_status_t verify_by_ocsp(private_ca_info_t* this,
|
|||||||
|
|
||||||
if (comparison > 0)
|
if (comparison > 0)
|
||||||
{
|
{
|
||||||
iterator->insert_after(iterator, (void *)cached_certinfo);
|
this->certinfos->insert_last(this->certinfos, (void *)cached_certinfo);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user