commit | 82dd707988b7481e203cab058c92f0b3041dd558 | [log] [tgz] |
---|---|---|
author | Lou Berger <lberger@labn.net> | Tue Jan 12 13:41:57 2016 -0500 |
committer | Paul Jakma <paul.jakma@hpe.com> | Fri Feb 26 14:11:43 2016 +0000 |
tree | 01923f2a1a5b0ca381e9eb7b093f467ca4cc942b | |
parent | 13c378d96a57017f5995b2e0df46cfc31123f0e8 [diff] [blame] |
bgpd: improve cleanup in bgp_delete() Signed-off-by: Lou Berger <lberger@labn.net>
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index 7555ca7..b449cae 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c
@@ -2295,6 +2295,9 @@ struct bgp_node *bn; struct bgp_static *bgp_static; + if (bm->bgp == NULL) /* may be called during cleanup */ + return; + /* For neighbor route-map updates. */ for (ALL_LIST_ELEMENTS (bm->bgp, mnode, mnnode, bgp)) {