diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-04-08 02:14:34 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-04-09 11:24:51 +0300 |
| commit | 83c444220277ff40115e6fd6bdfb0cace8c52362 (patch) | |
| tree | adc1252a4526bea456db9727a2482a0fc404e5ad /lib/bfd.c | |
| parent | 964788a11ffa185c89054144a53a2e1a6be69036 (diff) | |
ospfd: fix crash on "show ip ospf neighbor detail"
Fixes #8419.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/bfd.c')
| -rw-r--r-- | lib/bfd.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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(); |
