Skip to content

Commit

Permalink
Merge pull request #17786 from FRRouting/mergify/bp/stable/10.0/pr-17780
Browse files Browse the repository at this point in the history
bgpd: fix a bug in peer_allowas_in_set() (backport #17780)
  • Loading branch information
riw777 authored Jan 7, 2025
2 parents 23812cb + 0313ea1 commit c66b188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bgpd/bgpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}
}
}
Expand Down

0 comments on commit c66b188

Please sign in to comment.