From 51b2dcd0075b10e868dfeb0427bd25ffd055fcc5 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Thu, 17 Oct 2024 13:33:17 +0300 Subject: bgpd: Check transivity flag for node target extended community with CHECK_FLAG() Signed-off-by: Donatas Abraitis --- bgpd/bgp_ecommunity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bgpd/bgp_ecommunity.c') diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index e2292bb963..0443203fe0 100644 --- a/bgpd/bgp_ecommunity.c +++ b/bgpd/bgp_ecommunity.c @@ -1419,7 +1419,7 @@ char *ecommunity_ecom2str(struct ecommunity *ecom, int format, int filter) pnt, len); else unk_ecom = true; - } else if (type == ECOMMUNITY_ENCODE_IP_NON_TRANS) { + } else if (CHECK_FLAG(type, ECOMMUNITY_ENCODE_IP_NON_TRANS)) { sub_type = *pnt++; if (sub_type == ECOMMUNITY_NODE_TARGET) ecommunity_node_target_str( -- cgit v1.2.3