summaryrefslogtreecommitdiffstats
path: root/lib/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 /lib/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 '')
-rw-r--r--lib/bfd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bfd.c b/lib/bfd.c
index 176269cc5..276d6c685 100644
--- a/lib/bfd.c
+++ b/lib/bfd.c
@@ -988,6 +988,9 @@ void bfd_sess_show(struct vty *vty, struct json_object *json,
json_object *json_bfd = NULL;
char time_buf[64];
+ if (!bsp)
+ return;
+
/* Show type. */
if (json) {
json_bfd = json_object_new_object();