From: Donald Sharp Date: Thu, 24 Sep 2020 12:16:57 +0000 (-0400) Subject: bgpd: pbra is already derefed in all paths to this spot X-Git-Tag: base_7.6~515^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9f1f03ec309a2f8c175bbcaa73d1a297055364c6;p=mirror%2Ffrr.git 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 --- diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 11e872f6b4..b203238520 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -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)