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:
Donald Sharp 2023-11-15 09:55:01 -05:00 committed by GitHub
commit 1444b9fa3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;