X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnode.c;h=fb4b7eb4ca88293daf0affff0da340874c98bc90;hp=0da7e605a9cc246874bbfedcd9ae07f16c169d53;hb=0c7e0210d900185d4c1a9ffd969dc2a26d9523a9;hpb=7939ee12836bf2ef772f2a6a1e805ee0d64a8e70 diff --git a/src/node.c b/src/node.c index 0da7e605..fb4b7eb4 100644 --- a/src/node.c +++ b/src/node.c @@ -93,7 +93,6 @@ void free_node(node_t *n) { sptps_stop(&n->sptps); timeout_del(&n->udp_ping_timeout); - timeout_del(&n->mtutimeout); if(n->hostname) free(n->hostname); @@ -180,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;