check if acerts linked_list has been initialized before destroying it
This commit is contained in:
1 parent
32c8b1847b
commit
8fac84bcdd
1 file changed
+4
-1
+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