diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-02-19 13:11:23 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-19 13:11:23 -0500 | 
| commit | ae13cc51d5f3e5205fd092831959dc08775c9f25 (patch) | |
| tree | eb480b2f7c1637aa4c27641eb5b96daba740a6af /bgpd | |
| parent | 69a86775ae438f7d09df39985a281fc329c497ef (diff) | |
| parent | f31a4bb9c096e0ccdb5d4c529fee71ea6bd392f4 (diff) | |
Merge pull request #3818 from pguibert6WIND/70_donotcrash_when_config_l3vpn
bgpd: do not crash when removing ip vpn entries
Diffstat (limited to 'bgpd')
| -rw-r--r-- | bgpd/bgp_route.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 31cd3d1f05..4928eb50e5 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -5069,6 +5069,9 @@ void bgp_static_delete(struct bgp *bgp)  					bgp_static =  						bgp_node_get_bgp_static_info(  							rm); +					if (!bgp_static) +						continue; +  					bgp_static_withdraw_safi(  						bgp, &rm->p, AFI_IP, safi,  						(struct prefix_rd *)&rn->p); @@ -5245,8 +5248,6 @@ int bgp_static_set_safi(afi_t afi, safi_t safi, struct vty *vty,  	if (!bgp_node_has_bgp_path_info_data(prn))  		bgp_node_set_bgp_table_info(prn,  					    bgp_table_init(bgp, afi, safi)); -	else -		bgp_unlock_node(prn);  	table = bgp_node_get_bgp_table_info(prn);  	rn = bgp_node_get(table, &p);  | 
