Changeset 4242

Show
Ignore:
Timestamp:
08/01/08 12:12:33 (5 months ago)
Author:
andreas
Message:

fixed the close_peerlog() bug causing ipsec pluto --help to segfault

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/pluto/log.c

    r4024 r4242  
    9696{ 
    9797    /* exit if the queue has not been initialized */ 
    98     if (TAILQ_LAST(&perpeer_list, perpeer) == NULL) 
    99       return; 
     98    if (perpeer_list.tqh_last == NULL) 
     99      return; 
    100100 
    101101    /* end of queue is given by pointer to "HEAD" */