commit | d5d5e3e04fc41b9a89b7ce9049fd322bdbde2e4d | [log] [tgz] |
---|---|---|
author | Lou Berger <lberger@labn.net> | Tue Jan 12 13:41:58 2016 -0500 |
committer | Paul Jakma <paul.jakma@hpe.com> | Fri Feb 26 14:11:43 2016 +0000 |
tree | 7199aaf51bd89a8532b46cff042316ed00a2d6ad | |
parent | 82dd707988b7481e203cab058c92f0b3041dd558 [diff] [blame] |
bgpd: tests - add null pointer protection to fix bgp test failures Signed-off-by: Lou Berger <lberger@labn.net>
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c index d1c5c86..bb07eac 100644 --- a/bgpd/bgp_nexthop.c +++ b/bgpd/bgp_nexthop.c
@@ -594,6 +594,9 @@ void bgp_address_destroy (void) { + if (bgp_address_hash == NULL) + return; + hash_clean(bgp_address_hash, NULL); hash_free(bgp_address_hash); bgp_address_hash = NULL;