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.1pre3~11 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=45944e4514a7765f858fa33cc1d9719a603099e0;p=tinc Clear status and options fields of unreachable nodes. --- diff --git a/src/graph.c b/src/graph.c index 6428f4db..9036c528 100644 --- a/src/graph.c +++ b/src/graph.c @@ -246,6 +246,8 @@ static void check_reachability(void) { if(!n->status.reachable) { update_node_udp(n, NULL); + memset(&n->status, 0, sizeof n->status); + n->options = 0; } else if(n->connection) { if(n->status.sptps) { if(n->connection->outgoing)