mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 09:52:27 +00:00
Merge pull request #13904 from FRRouting/mergify/bp/dev/9.0/pr-13895
ospfd: check for NULLs in ldp-igp sync json code (backport #13895)
This commit is contained in:
commit
17b938a73e
@ -637,6 +637,9 @@ static int show_ip_ospf_mpls_ldp_interface_common(struct vty *vty,
|
|||||||
rn = route_next(rn)) {
|
rn = route_next(rn)) {
|
||||||
oi = rn->info;
|
oi = rn->info;
|
||||||
|
|
||||||
|
if (oi == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (use_json) {
|
if (use_json) {
|
||||||
json_interface_sub =
|
json_interface_sub =
|
||||||
json_object_new_object();
|
json_object_new_object();
|
||||||
@ -672,6 +675,9 @@ static int show_ip_ospf_mpls_ldp_interface_common(struct vty *vty,
|
|||||||
rn = route_next(rn)) {
|
rn = route_next(rn)) {
|
||||||
oi = rn->info;
|
oi = rn->info;
|
||||||
|
|
||||||
|
if (oi == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (use_json)
|
if (use_json)
|
||||||
json_interface_sub =
|
json_interface_sub =
|
||||||
json_object_new_object();
|
json_object_new_object();
|
||||||
|
@ -4175,6 +4175,9 @@ static int show_ip_ospf_interface_traffic_common(
|
|||||||
rn = route_next(rn)) {
|
rn = route_next(rn)) {
|
||||||
oi = rn->info;
|
oi = rn->info;
|
||||||
|
|
||||||
|
if (oi == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (use_json) {
|
if (use_json) {
|
||||||
json_interface_sub =
|
json_interface_sub =
|
||||||
json_object_new_object();
|
json_object_new_object();
|
||||||
|
Loading…
Reference in New Issue
Block a user