diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-20 03:04:04 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-20 03:04:04 +0200 |
commit | 15f606c9ff5366e6fcb9b8fbba7f60e461b0775a (patch) | |
tree | 112872f3c4d7051288002f8dcf545f386b3eac23 /bgpd | |
parent | Fix reference counts for the nexthop cache entries. (diff) | |
download | frr-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.c | 1 |
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); |