X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnode.c;h=fb4b7eb4ca88293daf0affff0da340874c98bc90;hp=71f55b85a931bab56122a6449005c0d33be4a6ac;hb=0c7e0210d900185d4c1a9ffd969dc2a26d9523a9;hpb=cfe9285adf391ab66faeb5def811fe08e47a221a diff --git a/src/node.c b/src/node.c index 71f55b85..fb4b7eb4 100644 --- a/src/node.c +++ b/src/node.c @@ -92,7 +92,7 @@ void free_node(node_t *n) { ecdsa_free(n->ecdsa); sptps_stop(&n->sptps); - timeout_del(&n->mtutimeout); + timeout_del(&n->udp_ping_timeout); if(n->hostname) free(n->hostname); @@ -179,6 +179,7 @@ void update_node_udp(node_t *n, const sockaddr_t *sa) { /* invalidate UDP information - note that this is a security feature as well to make sure we can't be tricked into flooding any random address with UDP packets */ n->status.udp_confirmed = false; + n->maxrecentlen = 0; n->mtuprobes = 0; n->minmtu = 0; n->maxmtu = MTU;