summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 03:04:04 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 03:04:04 +0200
commit15f606c9ff5366e6fcb9b8fbba7f60e461b0775a (patch)
tree112872f3c4d7051288002f8dcf545f386b3eac23 /bgpd
parentFix reference counts for the nexthop cache entries. (diff)
downloadfrr-15f606c9ff5366e6fcb9b8fbba7f60e461b0775a.tar.xz
frr-15f606c9ff5366e6fcb9b8fbba7f60e461b0775a.zip
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.
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_route.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 5097f0bce..52f5c804d 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);