diff --git a/routingtable/locRIB/loc_rib.go b/routingtable/locRIB/loc_rib.go index 73a6a2ff7251e0644fd80471111694bd83bf02cd..6e030de30ac6cdb3fc51b942b8b2fb68997862c7 100644 --- a/routingtable/locRIB/loc_rib.go +++ b/routingtable/locRIB/loc_rib.go @@ -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)