From 8f1ba6daebb515d4e82c30d9b3578ea55de9c99a 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. Conflicts: src/graph.c --- src/graph.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/graph.c b/src/graph.c index e2ef8b1..586aee8 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); + } } } } -- 2.25.1