From ea36a1f159babb730093ac014b23ce25dd92458a Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Sun, 3 Aug 2008 18:01:21 +0000 Subject: [PATCH] fixed improper TAILQ fix which caused pluto to segfault --- src/pluto/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" */