Change flush_events() to expire_events().
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 19 Jan 2009 21:50:05 +0000 (22:50 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 19 Jan 2009 21:50:05 +0000 (22:50 +0100)
The former function made a totally bogus shallow copy of the event_tree, called
the handler of each event and then deleted the whole tree.  This should've
caused tinc to crash when an ALARM signal was sent more than once, but for some
reason it didn't. It also behaved incorrectly when a handler added a new event.

The new function just moves the expiration time of all events to the past.


No differences found