mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Neighbor locking: forgotten neighbors to unlink are actually a bug.
These may cause runaway pointers.
This commit is contained in:
parent
ca5ed6997c
commit
7889f0c25b
@ -684,7 +684,7 @@ iface_unsubscribe(struct iface_subscription *s)
|
|||||||
|
|
||||||
WALK_TLIST_DELSAFE(proto_neigh, n, &p->neighbors)
|
WALK_TLIST_DELSAFE(proto_neigh, n, &p->neighbors)
|
||||||
{
|
{
|
||||||
log(L_WARN "%s: Unlinking forgotten neighbor %I", p->name, n->addr);
|
bug("%s: Unlinking forgotten neighbor %I", p->name, n->addr);
|
||||||
neigh_unlink_locked(n);
|
neigh_unlink_locked(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user