mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 03:42:57 +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)
|
||||
continue;
|
||||
|
||||
if (pbrms->nhg
|
||||
&& strcmp(nh_group, pbrms->internal_nhg_name))
|
||||
if (pbrms->nhg == NULL)
|
||||
continue;
|
||||
|
||||
if (strcmp(nh_group, pbrms->internal_nhg_name))
|
||||
continue;
|
||||
|
||||
if (pbrms->nhg->nexthop == NULL)
|
||||
continue;
|
||||
|
||||
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)
|
||||
continue;
|
||||
|
||||
if (pbrms->nhg
|
||||
&& strcmp(nh_group, pbrms->internal_nhg_name))
|
||||
if (pbrms->nhg == NULL)
|
||||
continue;
|
||||
|
||||
if (strcmp(nh_group, pbrms->internal_nhg_name))
|
||||
continue;
|
||||
|
||||
if (pbrms->nhg->nexthop == NULL)
|
||||
continue;
|
||||
|
||||
if (pbrms->nhg->nexthop->ifindex != oldifindex)
|
||||
|
Loading…
Reference in New Issue
Block a user