summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_bfd.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-04-08 01:14:34 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-04-09 10:24:51 +0200
commit83c444220277ff40115e6fd6bdfb0cace8c52362 (patch)
treeadc1252a4526bea456db9727a2482a0fc404e5ad /bgpd/bgp_bfd.c
parentMerge pull request #8405 from mjstapp/skip_backup_lsps (diff)
downloadfrr-83c444220277ff40115e6fd6bdfb0cace8c52362.tar.xz
frr-83c444220277ff40115e6fd6bdfb0cace8c52362.zip
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 f1bdcc8bb..958d7cf0e 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,