mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 07:37:29 +00:00
pbrd: fix SA warning in nhg map
Fix SA warnings in nhg map functions. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
2e5b029865
commit
9d0b324d5f
@ -785,8 +785,13 @@ void pbr_map_check_vrf_nh_group_change(const char *nh_group,
|
|||||||
if (pbrms->nhgrp_name)
|
if (pbrms->nhgrp_name)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (pbrms->nhg
|
if (pbrms->nhg == NULL)
|
||||||
&& strcmp(nh_group, pbrms->internal_nhg_name))
|
continue;
|
||||||
|
|
||||||
|
if (strcmp(nh_group, pbrms->internal_nhg_name))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (pbrms->nhg->nexthop == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (pbrms->nhg->nexthop->vrf_id != old_vrf_id)
|
if (pbrms->nhg->nexthop->vrf_id != old_vrf_id)
|
||||||
@ -810,8 +815,13 @@ void pbr_map_check_interface_nh_group_change(const char *nh_group,
|
|||||||
if (pbrms->nhgrp_name)
|
if (pbrms->nhgrp_name)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (pbrms->nhg
|
if (pbrms->nhg == NULL)
|
||||||
&& strcmp(nh_group, pbrms->internal_nhg_name))
|
continue;
|
||||||
|
|
||||||
|
if (strcmp(nh_group, pbrms->internal_nhg_name))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (pbrms->nhg->nexthop == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (pbrms->nhg->nexthop->ifindex != oldifindex)
|
if (pbrms->nhg->nexthop->ifindex != oldifindex)
|
||||||
|
Loading…
Reference in New Issue
Block a user