From: Guus Sliepen Date: Thu, 11 Jun 2009 17:07:54 +0000 (+0200) Subject: Remove pending MTU probe events when a node's reachability status changes. X-Git-Tag: release-1.0.10~51 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=df4add94a4a6461758b218a9ad257efc735062fe;p=tinc Remove pending MTU probe events when a node's reachability status changes. --- diff --git a/src/graph.c b/src/graph.c index 87bb2204..85643585 100644 --- a/src/graph.c +++ b/src/graph.c @@ -264,6 +264,11 @@ void sssp_bfs(void) n->minmtu = 0; n->mtuprobes = 0; + if(n->mtuevent) { + event_del(n->mtuevent); + n->mtuevent = NULL; + } + asprintf(&envp[0], "NETNAME=%s", netname ? : ""); asprintf(&envp[1], "DEVICE=%s", device ? : ""); asprintf(&envp[2], "INTERFACE=%s", iface ? : "");