fixed the close_peerlog() bug causing ipsec pluto --help to segfault
This commit is contained in:
+2
-2
@@ -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_last == NULL)
|
||||
return;
|
||||
|
||||
/* end of queue is given by pointer to "HEAD" */
|
||||
while (TAILQ_LAST(&perpeer_list, perpeer) != (void *)&perpeer_list)
|
||||
|
||||
Reference in New Issue
Block a user