summaryrefslogtreecommitdiff
path: root/bgpd/bgp_bfd.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-04-08 02:14:34 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-04-09 11:24:51 +0300
commit83c444220277ff40115e6fd6bdfb0cace8c52362 (patch)
treeadc1252a4526bea456db9727a2482a0fc404e5ad /bgpd/bgp_bfd.c
parent964788a11ffa185c89054144a53a2e1a6be69036 (diff)
ospfd: fix crash on "show ip ospf neighbor detail"
Fixes #8419. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bgpd/bgp_bfd.c')
-rw-r--r--bgpd/bgp_bfd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c
index f1bdcc8bb4..958d7cf0ed 100644
--- a/bgpd/bgp_bfd.c
+++ b/bgpd/bgp_bfd.c
@@ -424,8 +424,7 @@ void bgp_bfd_peer_config_write(struct vty *vty, const struct peer *peer,
void bgp_bfd_show_info(struct vty *vty, const struct peer *peer,
json_object *json_neigh)
{
- if (peer->bfd_config->session)
- bfd_sess_show(vty, json_neigh, peer->bfd_config->session);
+ bfd_sess_show(vty, json_neigh, peer->bfd_config->session);
}
DEFUN (neighbor_bfd,