Skip to content
Snippets Groups Projects
Commit 40908b79 authored by Oliver Herms's avatar Oliver Herms
Browse files

Fixing removePath

parent ab028f24
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,8 @@ func (n *node) removePath(pfx net.Prefix, p *route.Path) {
return
}
if n.route.RemovePath(p) {
n.route.RemovePath(p)
if len(n.route.Paths()) == 0 {
// FIXME: Can this node actually be removed from the trie entirely?
n.dummy = true
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment