X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fgraph.c;h=9036c528d815e05ffb8438cd425c0621a1b0f9e7;hb=45944e4514a7765f858fa33cc1d9719a603099e0;hp=6428f4db77c2e2a8fb49969ca6432142578f7d10;hpb=d917c8cb6b69475d568ccbe82389b9f2b3eb5e80;p=meshlink 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)