diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-08-03 18:01:21 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-08-03 18:01:21 +0000 |
commit | ea36a1f159babb730093ac014b23ce25dd92458a (patch) | |
tree | 4cf089c2d778cef3187304e739c7351afb1840c4 /src | |
parent | 619998b3aca1eba51bd23fa080a55d3eeed779bc (diff) | |
download | strongswan-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.c | 2 |
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" */ |