From: Guus Sliepen Date: Thu, 11 Oct 2012 20:21:30 +0000 (+0200) Subject: Clear status and options fields of unreachable nodes. X-Git-Tag: release-1.0.20~17 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=8f1ba6daebb515d4e82c30d9b3578ea55de9c99a;p=tinc Clear status and options fields of unreachable nodes. Conflicts: src/graph.c --- diff --git a/src/graph.c b/src/graph.c index e2ef8b1a..586aee8b 100644 --- a/src/graph.c +++ b/src/graph.c @@ -287,10 +287,13 @@ static void sssp_bfs(void) { subnet_update(n, NULL, n->status.reachable); - if(!n->status.reachable) + if(!n->status.reachable) { update_node_udp(n, NULL); - else if(n->connection) + memset(&n->status, 0, sizeof n->status); + n->options = 0; + } else if(n->connection) { send_ans_key(n); + } } } }