From: Guus Sliepen Date: Fri, 24 Jun 2011 20:10:03 +0000 (+0200) Subject: Delete mtuevent if it is not used. X-Git-Tag: import-tinc-1.1~481 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=1fe8ba2f06c39d7c8b81f0e451bdbac94ae9375f;p=meshlink Delete mtuevent if it is not used. Keeping it around prevents ans_key_h() from restarting PMTU discovery. --- diff --git a/src/net_packet.c b/src/net_packet.c index 3627f31d..7e617a61 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -81,6 +81,7 @@ 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; }