From 0d5b3cb9d72670deee6a48721615f98aa2493b4c Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Tue, 5 Oct 2021 16:24:41 +0200 Subject: [PATCH] bgpd: large community exact match fix The pointer to large community was not the appropriate one. Signed-off-by: Philippe Guibert --- bgpd/bgp_clist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_clist.c b/bgpd/bgp_clist.c index 33e3db2c16..0e590a463c 100644 --- a/bgpd/bgp_clist.c +++ b/bgpd/bgp_clist.c @@ -720,7 +720,7 @@ bool lcommunity_list_exact_match(struct lcommunity *lcom, return entry->direct == COMMUNITY_PERMIT; if (entry->style == LARGE_COMMUNITY_LIST_STANDARD) { - if (lcommunity_cmp(lcom, entry->u.com)) + if (lcommunity_cmp(lcom, entry->u.lcom)) return entry->direct == COMMUNITY_PERMIT; } else if (entry->style == LARGE_COMMUNITY_LIST_EXPANDED) { if (lcommunity_regexp_match(lcom, entry->reg)) -- 2.39.5