Skip to content

Commit

Permalink
bgpd: Use dest instead of info->net
Browse files Browse the repository at this point in the history
bgp_zebra_withdraw is using info->net instead
of the passed in dest.  This is more natural
and how people think about the problem.

Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Jan 31, 2024
1 parent 247fb76 commit 9784d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -1734,7 +1734,7 @@ void bgp_zebra_withdraw(struct bgp_dest *dest, struct bgp_path_info *info,
* If we are withdrawing the route, we don't need to have this
* flag set. So unset it.
*/
UNSET_FLAG(info->net->flags, BGP_NODE_FIB_INSTALL_PENDING);
UNSET_FLAG(dest->flags, BGP_NODE_FIB_INSTALL_PENDING);

/* Don't try to install if we're not connected to Zebra or Zebra doesn't
* know of this instance.
Expand Down

0 comments on commit 9784d9a

Please sign in to comment.