Skip to content

Commit

Permalink
Merge pull request #13895 from mjstapp/fix_ospf_sync_json_null
Browse files Browse the repository at this point in the history
ospfd: check for NULLs in ldp-igp sync json code
  • Loading branch information
donaldsharp authored Jul 2, 2023
2 parents 1f322e4 + 864a3bc commit 913f02f
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 @@ -4301,6 +4301,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 913f02f

Please sign in to comment.