From: Andreas Steffen Date: Sun, 3 Aug 2008 18:01:21 +0000 (-0000) Subject: fixed improper TAILQ fix which caused pluto to segfault X-Git-Tag: 4.2.6~47 X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=commitdiff_plain;h=ea36a1f159babb730093ac014b23ce25dd92458a fixed improper TAILQ fix which caused pluto to segfault --- diff --git a/src/pluto/log.c b/src/pluto/log.c index e8bdd46..6c4719a 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" */