summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2022-10-04 13:41:58 +0200
committerGitHub <noreply@github.com>2022-10-04 13:41:58 +0200
commit4b72a7be697fcd69b0d17ebc5b28bb2b0fe55e0d (patch)
treecf159624ca5b647ad5f49023ea1713eee3726ce5 /bgpd
parentMerge pull request #12043 from donaldsharp/bgp_hate (diff)
parentbgpd: Fix `show bgp nexthop A.B.C.D` (diff)
downloadfrr-4b72a7be697fcd69b0d17ebc5b28bb2b0fe55e0d.tar.xz
frr-4b72a7be697fcd69b0d17ebc5b28bb2b0fe55e0d.zip
Merge pull request #12047 from donaldsharp/bgp_nexthop_individual
bgpd: Fix `show bgp nexthop A.B.C.D`
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_nexthop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c
index 7867860cb..59b31072b 100644
--- a/bgpd/bgp_nexthop.c
+++ b/bgpd/bgp_nexthop.c
@@ -919,7 +919,7 @@ static int show_ip_bgp_nexthop_table(struct vty *vty, const char *name,
}
tree = import_table ? &bgp->import_check_table
: &bgp->nexthop_cache_table;
- bnc = bnc_find(tree[family2afi(nhop.family)], &nhop, 0, 0);
+ bnc = bnc_find(&(*tree)[family2afi(nhop.family)], &nhop, 0, 0);
if (!bnc) {
vty_out(vty, "specified nexthop does not have entry\n");
return CMD_SUCCESS;