From 15f606c9ff5366e6fcb9b8fbba7f60e461b0775a Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 19 May 2015 18:04:04 -0700 Subject: [PATCH] Remove incorrect call to delete NHT for a route added via "network" command. When a route is announced in BGP via "network" command, we also register its next hop with NHT code to allow of updates when the nexthop changes. When this route is deleted via "no network" command, we incorrectly make a second call to unregister the NHT tracking associated with this route. This causes a crash. Fix that. --- bgpd/bgp_route.c | 1 - 1 file changed, 1 deletion(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 5097f0bce6..52f5c804d2 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -4965,7 +4965,6 @@ bgp_static_unset (struct vty *vty, struct bgp *bgp, const char *ip_str, bgp_static_withdraw (bgp, &p, afi, safi); /* Clear configuration. */ - bgp_unlink_nexthop(bgp_static); bgp_static_free (bgp_static); rn->info = NULL; bgp_unlock_node (rn); -- 2.39.5