Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
routing: fix bug in path finding when len(rootPath) > len(shortestPath)
This commit fixes a bug within the k-shortest paths routine which could result in a daemon panic when traversing a graph with particular characteristics. Before referencing the path to create a sub-slice, we we’re properly asserting that the length of the path was at least as long as the current rootPath in question. We fix this by simply ensuring the length of the slice is adequate before proceeding with the operation.
- Loading branch information