check if acerts linked_list has been initialized before destroying it
This commit is contained in:
parent
32c8b1847b
commit
8fac84bcdd
|
@ -46,7 +46,10 @@ void ac_initialize(void)
|
|||
*/
|
||||
void ac_finalize(void)
|
||||
{
|
||||
acerts->destroy_offset(acerts, offsetof(certificate_t, destroy));
|
||||
if (acerts)
|
||||
{
|
||||
acerts->destroy_offset(acerts, offsetof(certificate_t, destroy));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue