aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2008-08-03 18:01:21 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2008-08-03 18:01:21 +0000
commitea36a1f159babb730093ac014b23ce25dd92458a (patch)
tree4cf089c2d778cef3187304e739c7351afb1840c4 /src
parent619998b3aca1eba51bd23fa080a55d3eeed779bc (diff)
downloadstrongswan-ea36a1f159babb730093ac014b23ce25dd92458a.tar.bz2
strongswan-ea36a1f159babb730093ac014b23ce25dd92458a.tar.xz
fixed improper TAILQ fix which caused pluto to segfault
Diffstat (limited to 'src')
-rw-r--r--src/pluto/log.c2
1 files changed, 1 insertions, 1 deletions
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" */