]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: large community exact match fix
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 5 Oct 2021 14:24:41 +0000 (16:24 +0200)
committermergify-bot <noreply@mergify.io>
Tue, 5 Oct 2021 19:31:13 +0000 (19:31 +0000)
The pointer to large community was not the appropriate one.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
(cherry picked from commit 0d5b3cb9d72670deee6a48721615f98aa2493b4c)

bgpd/bgp_clist.c

index 8b38f4dfa08309f7c69db10efc06edd2500ea8d6..690f61559781433e3146dc224e102877fa6378bb 100644 (file)
@@ -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))