check if acerts linked_list has been initialized before destroying it
This commit is contained in:
+4
-1
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user