From 8fac84bcdd8eed4620e61d421e4e576be85dd8d9 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Wed, 4 Nov 2009 19:36:02 +0100 Subject: [PATCH] check if acerts linked_list has been initialized before destroying it --- src/pluto/ac.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pluto/ac.c b/src/pluto/ac.c index 310c4e78d..f2d81a5b8 100644 --- a/src/pluto/ac.c +++ b/src/pluto/ac.c @@ -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)); + } } /**