tinc-gui: Reformat codebase according to PEP8
[tinc] / src / node.c
index 0da7e60..fb4b7eb 100644 (file)
@@ -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;