X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgraph.c;h=da6490911e36b3853f24f84cc345c4278c7c3bb0;hb=c44b08613508c993e7fd9f625e0b1b4775efffed;hp=bf3e75c7f797326802e839d45de60e4ff0866996;hpb=3a149f7521dfff67e6a790c1a830afc649ae083e;p=tinc diff --git a/src/graph.c b/src/graph.c index bf3e75c7..da649091 100644 --- a/src/graph.c +++ b/src/graph.c @@ -149,7 +149,7 @@ static void sssp_bfs(void) { abort(); } - for splay_each(edge_t, e, n->edge_tree) { /* "e" is the edge connected to "from" */ + for splay_each(edge_t, e, &n->edge_tree) { /* "e" is the edge connected to "from" */ if(!e->reverse || e->to == myself) { continue; } @@ -307,7 +307,7 @@ static void check_reachability(void) { } void graph(void) { - subnet_cache_flush(); + subnet_cache_flush_tables(); sssp_bfs(); check_reachability(); mst_kruskal();