0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Neighbor locking: forgotten neighbors to unlink are actually a bug.

These may cause runaway pointers.
This commit is contained in:
Katerina Kubecova 2024-11-13 15:45:09 +01:00 committed by Maria Matejka
parent ca5ed6997c
commit 7889f0c25b

View File

@ -684,7 +684,7 @@ iface_unsubscribe(struct iface_subscription *s)
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);
}