Ensure past_request_event is initialized and registered properly.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 15 Jan 2011 21:20:51 +0000 (22:20 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 15 Jan 2011 21:20:51 +0000 (22:20 +0100)
src/protocol.c

index 023f969..b8b8104 100644 (file)
@@ -226,6 +226,8 @@ void init_requests(void) {
        past_request_tree = splay_alloc_tree((splay_compare_t) past_request_compare, (splay_action_t) free_past_request);
 
        past_request_event.handler = age_past_requests;
+       past_request_event.time = time(NULL) + 10;
+       event_add(&past_request_event);
 }
 
 void exit_requests(void) {