Skip to content

Commit

Permalink
Merge pull request FRRouting#13904 from FRRouting/mergify/bp/dev/9.0/…
Browse files Browse the repository at this point in the history
…pr-13895

ospfd: check for NULLs in ldp-igp sync json code (backport FRRouting#13895)
  • Loading branch information
ton31337 authored Jul 3, 2023
2 parents d63f55c + 5ec72f9 commit 17b938a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ospfd/ospf_ldp_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,9 @@ static int show_ip_ospf_mpls_ldp_interface_common(struct vty *vty,
rn = route_next(rn)) {
oi = rn->info;

if (oi == NULL)
continue;

if (use_json) {
json_interface_sub =
json_object_new_object();
Expand Down Expand Up @@ -672,6 +675,9 @@ static int show_ip_ospf_mpls_ldp_interface_common(struct vty *vty,
rn = route_next(rn)) {
oi = rn->info;

if (oi == NULL)
continue;

if (use_json)
json_interface_sub =
json_object_new_object();
Expand Down
3 changes: 3 additions & 0 deletions ospfd/ospf_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -4175,6 +4175,9 @@ static int show_ip_ospf_interface_traffic_common(
rn = route_next(rn)) {
oi = rn->info;

if (oi == NULL)
continue;

if (use_json) {
json_interface_sub =
json_object_new_object();
Expand Down

0 comments on commit 17b938a

Please sign in to comment.