]> git.meshlink.io Git - meshlink/blobdiff - src/graph.c
Merge branch 'master' of git://tinc-vpn.org/tinc into 1.1
[meshlink] / src / graph.c
index bb55dfdcba1c821d25fcf1f27e4c81fc5478fb7f..42157b0a994b8cc29630eed36559dac9688e6cb1 100644 (file)
@@ -239,6 +239,7 @@ void sssp_bfs(void) {
        myself->status.visited = true;
        myself->status.indirect = false;
        myself->nexthop = myself;
+       myself->prevedge = NULL;
        myself->via = myself;
        list_insert_head(todo_list, myself);
 
@@ -279,6 +280,7 @@ void sssp_bfs(void) {
                        e->to->status.visited = true;
                        e->to->status.indirect = indirect;
                        e->to->nexthop = (n->nexthop == myself) ? e->to : n->nexthop;
+                       e->to->prevedge = e;
                        e->to->via = indirect ? n->via : e->to;
                        e->to->options = e->options;