From: hasso Date: Mon, 17 Jan 2005 11:04:32 +0000 (+0000) Subject: * bgp_route.c: Clear peer's routing table regardless whether it's X-Git-Tag: frr-2.0-rc1~3237 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f127165de02a66934082f23810fab37d7efbce8b;p=mirror%2Ffrr.git * bgp_route.c: Clear peer's routing table regardless whether it's configured or not. Being not configured is even better reason to do it. --- diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog index 79414defb8..f66857c0f0 100644 --- a/bgpd/ChangeLog +++ b/bgpd/ChangeLog @@ -1,3 +1,9 @@ +2005-01-17 Hasso Tepper + + * bgp_route.c: Clear peer's routing table regardless whether it's + configured or not. Being not configured is even better reason to + do it. + 2005-01-05 Paul Jakma * bgp_packet.c: (bgp_write) set socket to nonblock while writing diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index dfcb0817b3..16fcc89f7b 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -2248,9 +2248,6 @@ bgp_clear_route (struct peer *peer, afi_t afi, safi_t safi) struct peer *rsclient; struct listnode *nn; - if (! peer->afc[afi][safi]) - return; - if (safi != SAFI_MPLS_VPN) bgp_clear_route_table (peer, afi, safi, NULL, NULL); else