diff --git a/src/pluto/log.c b/src/pluto/log.c index e8bdd4662..6c4719a74 100644 --- a/src/pluto/log.c +++ b/src/pluto/log.c @@ -95,7 +95,7 @@ void close_peerlog(void) { /* exit if the queue has not been initialized */ - if (perpeer_list.tqh_last == NULL) + if (perpeer_list.tqh_first == NULL) return; /* end of queue is given by pointer to "HEAD" */