mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 06:50:17 +00:00
pbrd: fix coverity warning
CID 1500586
There was an attempt to fix it in 920bb6f7
but the commit didn't
actually fix the warning.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
f96c2b6dc2
commit
3558b8b8b4
@ -721,7 +721,7 @@ pbr_nht_individual_nexthop_gw_update(struct pbr_nexthop_cache *pnhc,
|
||||
* So let's search and do the right thing on the
|
||||
* interface event.
|
||||
*/
|
||||
if (!pnhi->nhr && pnhi->ifp) {
|
||||
if (!pnhi->nhr) {
|
||||
switch (pnhc->nexthop.type) {
|
||||
case NEXTHOP_TYPE_BLACKHOLE:
|
||||
case NEXTHOP_TYPE_IPV4:
|
||||
@ -738,7 +738,6 @@ pbr_nht_individual_nexthop_gw_update(struct pbr_nexthop_cache *pnhc,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (pnhi->nhr) {
|
||||
switch (pnhi->nhr->prefix.family) {
|
||||
case AF_INET:
|
||||
if (pnhc->nexthop.gate.ipv4.s_addr
|
||||
@ -752,7 +751,6 @@ pbr_nht_individual_nexthop_gw_update(struct pbr_nexthop_cache *pnhc,
|
||||
goto done; /* Unrelated change */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
pnhi->nhr_matched = true;
|
||||
if (!pnhi->nhr->nexthop_num) {
|
||||
|
Loading…
Reference in New Issue
Block a user