summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorhepeng <hepeng@kingsoft.com>2017-03-29 15:59:36 +0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-04-01 16:08:52 +0900
commit1d3225bd297d9522eb42cf2fae63f332ee8e00a2 (patch)
tree208126bae6eb47f3280a0238baac071981847c6d /server/server.go
parent428435556811567e2b6f79febcec98f654fce1c0 (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/server.go')
-rw-r--r--server/server.go2
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
}