]> git.meshlink.io Git - meshlink/blobdiff - src/net_packet.c
Fix compiler warning.
[meshlink] / src / net_packet.c
index 7e617a613f5b8b6c1d09ceb71a3a533423f4c3a4..875a0832bf88cf0fc37a0dd4ce01775faf5b8439 100644 (file)
@@ -81,7 +81,6 @@ static void send_mtu_probe_handler(int fd, short events, void *data) {
        if(!n->status.reachable || !n->status.validkey) {
                ifdebug(TRAFFIC) logger(LOG_INFO, "Trying to send MTU probe to unreachable or rekeying node %s (%s)", n->name, n->hostname);
                n->mtuprobes = 0;
-               event_del(&n->mtuevent);
                return;
        }
 
@@ -571,11 +570,6 @@ static node_t *try_harder(const sockaddr_t *from, const vpn_packet_t *pkt) {
        static time_t last_hard_try = 0;
        time_t now = time(NULL);
 
-       if(last_hard_try == now)
-               return NULL;
-       else
-               last_hard_try = now;
-
        for(node = edge_weight_tree->head; node; node = node->next) {
                e = node->data;