From 05864da7913a4874ac3e0c808930114e3549b265 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 16 Oct 2019 10:25:19 -0400 Subject: bgpd: `struct bgp_path_info *`->attr must not be NULL We make the assumption that ->attr is not NULL throughout the code base. We are totally inconsistent about application of this though. Signed-off-by: Donald Sharp --- bgpd/bgp_flowspec_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bgpd/bgp_flowspec_vty.c') diff --git a/bgpd/bgp_flowspec_vty.c b/bgpd/bgp_flowspec_vty.c index 2d6523ed3..80384c12c 100644 --- a/bgpd/bgp_flowspec_vty.c +++ b/bgpd/bgp_flowspec_vty.c @@ -294,7 +294,7 @@ void route_vty_out_flowspec(struct vty *vty, struct prefix *p, } if (!path) return; - if (path->attr && path->attr->ecommunity) { + if (path->attr->ecommunity) { /* Print attribute */ attr = path->attr; s = ecommunity_ecom2str(attr->ecommunity, -- cgit v1.2.3