Add a null check in bgp_address_del() function when connected

addresses are removed.
This commit is contained in:
Donald Sharp 2015-05-19 17:40:36 -07:00
parent 966f821c38
commit 5ce10e9251

View File

@ -577,6 +577,9 @@ bgp_address_add (struct prefix *p)
tmp.addr = p->u.prefix4;
addr = hash_get (bgp_address_hash, &tmp, bgp_address_hash_alloc);
if (!addr)
return;
addr->refcnt++;
}