diff options
author | hepeng <hepeng@kingsoft.com> | 2017-03-29 15:59:36 +0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-04-01 16:08:52 +0900 |
commit | 1d3225bd297d9522eb42cf2fae63f332ee8e00a2 (patch) | |
tree | 208126bae6eb47f3280a0238baac071981847c6d /server | |
parent | 428435556811567e2b6f79febcec98f654fce1c0 (diff) |
server: fix GetRib() to handle error properly
fix a bug that GetRib() doesn't return an error even if an error
happens.
Diffstat (limited to 'server')
-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 31ebd16c..d0336de3 100644 --- a/server/server.go +++ b/server/server.go @@ -1431,7 +1431,7 @@ func (s *BgpServer) GetRib(addr string, family bgp.RouteFamily, prefixes []*tabl return fmt.Errorf("address family: %s not supported", af) } rib, err = tbl.Select(table.TableSelectOption{ID: id, LookupPrefixes: prefixes}) - return nil + return err }, true) return } |