mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-04 15:45:32 +00:00
Merge pull request #14804 from FRRouting/mergify/bp/stable/9.1/pr-14798
zebra: Refactor memory allocation in zebra_rnh.c (backport #14798)
This commit is contained in:
commit
1444b9fa3b
@ -1434,8 +1434,8 @@ void show_nexthop_json_helper(json_object *json_nexthop,
|
||||
->seg[0]);
|
||||
json_object_object_add(json_nexthop, "seg6", json_seg6);
|
||||
} else {
|
||||
json_segs = json_object_new_array();
|
||||
if (nexthop->nh_srv6->seg6_segs) {
|
||||
json_segs = json_object_new_array();
|
||||
for (int seg_idx = 0;
|
||||
seg_idx <
|
||||
nexthop->nh_srv6->seg6_segs->num_segs;
|
||||
|
Loading…
Reference in New Issue
Block a user