diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-06-05 21:14:52 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-06-05 21:14:52 +0900 |
commit | 313f244c8d1571971b8ad847b47b90492621c124 (patch) | |
tree | 645193e807ac0e992ae223482f2b8618c810810a /server/server.go | |
parent | 789e24695699d0fe8d0851b6ed005cf4912c7454 (diff) |
server: fix GetRib() with rpki
fix a bug that doesn't return validation results at all.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r-- | server/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go index b190205f..c43da3f4 100644 --- a/server/server.go +++ b/server/server.go @@ -1874,7 +1874,7 @@ func (s *BgpServer) SoftReset(addr string, family bgp.RouteFamily) error { func (s *BgpServer) validateTable(r *table.Table) (v []*table.Validation) { if s.roaManager.enabled() { - v := make([]*table.Validation, 0, len(r.GetDestinations())) + v = make([]*table.Validation, 0, len(r.GetDestinations())) for _, d := range r.GetDestinations() { for _, p := range d.GetAllKnownPathList() { v = append(v, s.roaManager.validate(p)) |