zebra: add missing return in one get_elem() callback

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
Renato Westphal 2020-05-15 18:24:54 -03:00
parent e3c19b8145
commit c17a3d0f32

View File

@ -715,7 +715,7 @@ lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_inte
struct nexthop *nexthop = (struct nexthop *)args->list_entry;
if (nexthop->ifindex)
yang_data_new_string(
return yang_data_new_string(
args->xpath,
ifindex2ifname(nexthop->ifindex, nexthop->vrf_id));