From 313f244c8d1571971b8ad847b47b90492621c124 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 5 Jun 2018 21:14:52 +0900 Subject: server: fix GetRib() with rpki fix a bug that doesn't return validation results at all. Signed-off-by: FUJITA Tomonori --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') 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)) -- cgit v1.2.3