summaryrefslogtreecommitdiff
path: root/src/pluto/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pluto/log.c')
-rw-r--r--src/pluto/log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pluto/log.c b/src/pluto/log.c
index 0fb5f1d25..b7c1ba8b8 100644
--- a/src/pluto/log.c
+++ b/src/pluto/log.c
@@ -12,7 +12,7 @@
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
- * RCSID $Id: log.c 4024 2008-05-29 07:49:47Z andreas $
+ * RCSID $Id: log.c 4246 2008-08-03 18:01:21Z andreas $
*/
#include <stdio.h>
@@ -95,8 +95,8 @@ void
close_peerlog(void)
{
/* exit if the queue has not been initialized */
- if (TAILQ_LAST(&perpeer_list, perpeer) == NULL)
- return;
+ if (perpeer_list.tqh_first == NULL)
+ return;
/* end of queue is given by pointer to "HEAD" */
while (TAILQ_LAST(&perpeer_list, perpeer) != (void *)&perpeer_list)