Merge pull request #17786 from FRRouting/mergify/bp/stable/10.0/pr-17780

bgpd: fix a bug in peer_allowas_in_set() (backport #17780)
This commit is contained in:
Russ White 2025-01-07 09:44:48 -05:00 committed by GitHub
commit c66b18838d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6459,7 +6459,7 @@ int peer_allowas_in_set(struct peer *peer, afi_t afi, safi_t safi,
SET_FLAG(member->af_flags[afi][safi],
PEER_FLAG_ALLOWAS_IN_ORIGIN);
member->allowas_in[afi][safi] = 0;
peer_on_policy_change(peer, afi, safi, 0);
peer_on_policy_change(member, afi, safi, 0);
}
} else {
if (member->allowas_in[afi][safi] != allow_num
@ -6468,7 +6468,7 @@ int peer_allowas_in_set(struct peer *peer, afi_t afi, safi_t safi,
UNSET_FLAG(member->af_flags[afi][safi],
PEER_FLAG_ALLOWAS_IN_ORIGIN);
member->allowas_in[afi][safi] = allow_num;
peer_on_policy_change(peer, afi, safi, 0);
peer_on_policy_change(member, afi, safi, 0);
}
}
}