Skip to content
Snippets Groups Projects
Unverified Commit 3137f4d8 authored by Daniel Czerwonk's avatar Daniel Czerwonk Committed by GitHub
Browse files

Update loc_rib.go

added fixme
parent 66824c0c
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,8 @@ func (a *LocRIB) AddPath(pfx net.Prefix, p *route.Path) error {
oldRoute = r.Copy()
routeExisted = true
}
// FIXME: in AddPath() we assume that the same reference of route (r) is modified (not responsibility of locRIB). If this implementation changes in the future this code will break.
a.rt.AddPath(pfx, p)
if !routeExisted {
r = a.rt.Get(pfx)
......
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