From 45944e4514a7765f858fa33cc1d9719a603099e0 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 11 Oct 2012 22:21:30 +0200 Subject: [PATCH] Clear status and options fields of unreachable nodes. --- src/graph.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.20.1