mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-30 22:25:41 +00:00
Merge pull request #8422 from idryzhov/fix-show-ip-ospf
ospfd: fix crash on "show ip ospf neighbor detail"
This commit is contained in:
commit
750b1916b9
@ -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,
|
void bgp_bfd_show_info(struct vty *vty, const struct peer *peer,
|
||||||
json_object *json_neigh)
|
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,
|
DEFUN (neighbor_bfd,
|
||||||
|
@ -988,6 +988,9 @@ void bfd_sess_show(struct vty *vty, struct json_object *json,
|
|||||||
json_object *json_bfd = NULL;
|
json_object *json_bfd = NULL;
|
||||||
char time_buf[64];
|
char time_buf[64];
|
||||||
|
|
||||||
|
if (!bsp)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Show type. */
|
/* Show type. */
|
||||||
if (json) {
|
if (json) {
|
||||||
json_bfd = json_object_new_object();
|
json_bfd = json_object_new_object();
|
||||||
|
Loading…
Reference in New Issue
Block a user