mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 00:25:01 +00:00
bgpd: pbra is already derefed in all paths to this spot
The pbra variable is already derefed in all paths to this spot and as such we cannot be NULL at this point. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
2c85fdd4c3
commit
9f1f03ec30
@ -2367,7 +2367,7 @@ static void bgp_encode_pbr_rule_action(struct stream *s,
|
||||
struct prefix pfx;
|
||||
uint8_t fam = AF_INET;
|
||||
|
||||
if (pbra && pbra->nh.type == NEXTHOP_TYPE_IPV6)
|
||||
if (pbra->nh.type == NEXTHOP_TYPE_IPV6)
|
||||
fam = AF_INET6;
|
||||
stream_putl(s, 0); /* seqno unused */
|
||||
if (pbr)
|
||||
|
Loading…
Reference in New Issue
Block a user