X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fgraph.c;h=9b0184b091a0cdf15602871afcb7f5e277614720;hb=dd2cf09a9ac438b65a1f4c9dcff8d87a2b504538;hp=a6e38e42ea914bda3cb913b902b84ca7a72b1388;hpb=b67296418c51784d39a24c3041e2cb199bee06f2;p=meshlink diff --git a/src/graph.c b/src/graph.c index a6e38e42..9b0184b0 100644 --- a/src/graph.c +++ b/src/graph.c @@ -233,7 +233,7 @@ static void check_reachability(meshlink_handle_t *mesh) { if(!n->status.reachable) { update_node_udp(mesh, n, NULL); - memset(&n->status, 0, sizeof(n)->status); + n->status.broadcast = false; n->options = 0; } else if(n->connection) { if(n->connection->outgoing) {