Skip to content

Commit

Permalink
Merge pull request #15258 from louis-6wind/fix-adj-in-attr
Browse files Browse the repository at this point in the history
bgpd: fix attr comparaison bgp_adj_in_set
  • Loading branch information
ton31337 authored Jan 31, 2024
2 parents 72949f5 + 5c0aab1 commit bd3b17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_advertise.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void bgp_adj_in_set(struct bgp_dest *dest, struct peer *peer, struct attr *attr,

for (adj = dest->adj_in; adj; adj = adj->next) {
if (adj->peer == peer && adj->addpath_rx_id == addpath_id) {
if (adj->attr != attr) {
if (!attrhash_cmp(adj->attr, attr)) {
bgp_attr_unintern(&adj->attr);
adj->attr = bgp_attr_intern(attr);
}
Expand Down

0 comments on commit bd3b17d

Please sign in to comment.