check if acerts linked_list has been initialized before destroying it

This commit is contained in:
Andreas Steffen
2009-11-04 19:36:02 +01:00
parent 32c8b1847b
commit 8fac84bcdd
+4 -1
View File
@@ -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));
}
}
/**