From 9f1f03ec309a2f8c175bbcaa73d1a297055364c6 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 24 Sep 2020 08:16:57 -0400 Subject: [PATCH] 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 --- bgpd/bgp_zebra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)