Skip to content

Commit

Permalink
bgpd: global_gr_mode does not need to be set twice
Browse files Browse the repository at this point in the history
Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Aug 22, 2024
1 parent 05c17ef commit 4344ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2933,7 +2933,7 @@ static inline bool gr_mode_matches(enum peer_mode peer_gr_mode,
unsigned int bgp_peer_gr_action(struct peer *peer, enum peer_mode old_state,
enum peer_mode new_state)
{
enum global_mode global_gr_mode = bgp_global_gr_mode_get(peer->bgp);
enum global_mode global_gr_mode;
bool session_reset = true;

if (old_state == new_state)
Expand Down

0 comments on commit 4344ac1

Please sign in to comment.