X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=src%2Fgraph.c;h=56ebb61130b7949fcae8a2e793f43f6ed6ae7ad6;hb=f75e6f61f280b138082b87ce69bdbdee3e4ba56e;hp=49161c1683754a517625698055b6bd7783ff7674;hpb=f92c3446f2052a59d1e6a28f1bc7cec278cb1e48;p=tinc diff --git a/src/graph.c b/src/graph.c index 49161c16..56ebb611 100644 --- a/src/graph.c +++ b/src/graph.c @@ -173,7 +173,7 @@ static void sssp_bfs(void) { if(e->to->status.visited && (!e->to->status.indirect || indirect) - && (e->to->distance != n->distance + 1 || e->weight >= e->to->prevedge->weight)) + && (e->to->prevedge && (e->to->distance != n->distance + 1 || e->weight >= e->to->prevedge->weight))) continue; // Only update nexthop if it doesn't increase the path length