mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-01 12:47:16 +00:00
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.
This commit is contained in:
parent
7898cb4f5e
commit
15f606c9ff
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user