diff options
author | Russ White <russ@riw.us> | 2022-10-04 13:41:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 13:41:58 +0200 |
commit | 4b72a7be697fcd69b0d17ebc5b28bb2b0fe55e0d (patch) | |
tree | cf159624ca5b647ad5f49023ea1713eee3726ce5 /bgpd | |
parent | Merge pull request #12043 from donaldsharp/bgp_hate (diff) | |
parent | bgpd: Fix `show bgp nexthop A.B.C.D` (diff) | |
download | frr-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.c | 2 |
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; |