]> git.meshlink.io Git - meshlink/commitdiff
Don't call event_del() from the mtuevent handler, always send_mtu_probe() in ans_key_h().
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 24 Jun 2011 20:49:18 +0000 (22:49 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 24 Jun 2011 20:49:18 +0000 (22:49 +0200)
src/net_packet.c
src/protocol_key.c

index 7e617a613f5b8b6c1d09ceb71a3a533423f4c3a4..3627f31d317bfcc122269b0a84a9eff6327900d5 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;
        }
 
index 63fcd976875cc0520d2f6c8e8cad3e9e2851e476..1e7aa033e3316b557d1ad48481488a088f91d0eb 100644 (file)
@@ -275,7 +275,7 @@ bool ans_key_h(connection_t *c, char *request) {
                update_node_udp(from, &sa);
        }
 
-       if(from->options & OPTION_PMTU_DISCOVERY && !event_initialized(&from->mtuevent))
+       if(from->options & OPTION_PMTU_DISCOVERY)
                send_mtu_probe(from);
 
        return true;