check if acerts linked_list has been initialized before destroying it

This commit is contained in:
Andreas Steffen committed 2009-11-04 19:36:02 +01:00
1 parent 32c8b1847b
commit 8fac84bcdd
1 file changed
+3
+3
View File
@@ -45,9 +45,12 @@ void ac_initialize(void)
* Free the linked list of attribute certificates * Free the linked list of attribute certificates
*/ */
void ac_finalize(void) void ac_finalize(void)
{
if (acerts)
{ {
acerts->destroy_offset(acerts, offsetof(certificate_t, destroy)); acerts->destroy_offset(acerts, offsetof(certificate_t, destroy));
} }
}
/** /**
* Get a X.509 attribute certificate for a given holder * Get a X.509 attribute certificate for a given holder