]> 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)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 5 Oct 2021 14:24:41 +0000 (16:24 +0200)
The pointer to large community was not the appropriate one.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_clist.c

index 33e3db2c16696163bccade4977fc2c9bbe5fa4df..0e590a463c90c5ece4f80bbbc05613fbfc1784c9 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))