mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 12:36:20 +00:00
Add a null check in bgp_address_del() function when connected
addresses are removed.
This commit is contained in:
parent
966f821c38
commit
5ce10e9251
@ -577,6 +577,9 @@ bgp_address_add (struct prefix *p)
|
|||||||
tmp.addr = p->u.prefix4;
|
tmp.addr = p->u.prefix4;
|
||||||
|
|
||||||
addr = hash_get (bgp_address_hash, &tmp, bgp_address_hash_alloc);
|
addr = hash_get (bgp_address_hash, &tmp, bgp_address_hash_alloc);
|
||||||
|
if (!addr)
|
||||||
|
return;
|
||||||
|
|
||||||
addr->refcnt++;
|
addr->refcnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user