Clear status and options fields of unreachable nodes.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 11 Oct 2012 20:21:30 +0000 (22:21 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 11 Oct 2012 20:21:30 +0000 (22:21 +0200)
src/graph.c

index 6428f4db77c2e2a8fb49969ca6432142578f7d10..9036c528d815e05ffb8438cd425c0621a1b0f9e7 100644 (file)
@@ -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)