From 9784d9a7e49531a9e3c21ac2bce7ef902b4939ae Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 25 Jan 2024 13:25:27 -0500 Subject: [PATCH] bgpd: Use dest instead of info->net 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 --- bgpd/bgp_zebra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 7fdd827f03d9..f967fc966d71 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -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.