X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol.c;h=aec00eeeffeb3bd7f1080068383a93df8bdfba58;hp=f09aff65b7aeaaea6480abbafe8a2adc3e4cd06a;hb=50af33d01f425983dd2b1d7b61092a6325be3f41;hpb=4c85542894f7fca823b119b05e07179deb24229a diff --git a/src/protocol.c b/src/protocol.c index f09aff65..aec00eee 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -29,6 +29,7 @@ #include "xalloc.h" bool tunnelserver = false; +bool strictsubnets = false; /* Jumptable for the request handlers */ @@ -188,7 +189,7 @@ void exit_requests(void) { } bool seen_request(char *request) { - past_request_t *new, p = {0}; + past_request_t *new, p = {NULL}; p.request = request; @@ -213,7 +214,7 @@ void age_past_requests(void) { next = node->next; p = node->data; - if(p->firstseen + pinginterval < now) + if(p->firstseen + pinginterval <= now) avl_delete_node(past_request_tree, node), deleted++; else left++;