diff options
Diffstat (limited to 'table/adj.go')
-rw-r--r-- | table/adj.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/table/adj.go b/table/adj.go index 871a6813..a0148605 100644 --- a/table/adj.go +++ b/table/adj.go @@ -119,9 +119,9 @@ func (adj *AdjRib) DropStale(rfList []bgp.RouteFamily) []*Path { pathList := make([]*Path, 0, adj.Count(rfList)) for _, rf := range rfList { if table, ok := adj.table[rf]; ok { - for _, p := range table { + for k, p := range table { if p.IsStale() { - delete(table, p.getPrefix()) + delete(table, k) if !p.IsAsLooped() { adj.accepted[rf]-- } |