Skip to content

Commit

Permalink
Merge pull request FRRouting#17785 from FRRouting/mergify/bp/stable/1…
Browse files Browse the repository at this point in the history
…0.1/pr-17780

bgpd: fix a bug in peer_allowas_in_set() (backport FRRouting#17780)
  • Loading branch information
donaldsharp authored Jan 7, 2025
2 parents 38d67de + 83c3ea5 commit 9f51282
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 @@ -6540,7 +6540,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 @@ -6549,7 +6549,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 9f51282

Please sign in to comment.