From: Philippe Guibert Date: Tue, 5 Oct 2021 14:24:41 +0000 (+0200) Subject: bgpd: large community exact match fix X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=1563adf8383a21320afe5742f8311317e7d7aee3;p=matthieu%2Ffrr.git bgpd: large community exact match fix The pointer to large community was not the appropriate one. Signed-off-by: Philippe Guibert (cherry picked from commit 0d5b3cb9d72670deee6a48721615f98aa2493b4c) --- diff --git a/bgpd/bgp_clist.c b/bgpd/bgp_clist.c index 8b38f4dfa0..690f615597 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))