summaryrefslogtreecommitdiff
path: root/proto/bfd
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2016-03-22 13:35:40 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2016-03-23 02:21:42 +0100
commit665b8e5283df4f64eb44d8fb434489be1474b5d4 (patch)
treeef39499819c6c674a75647551d4f1fec2f9098f2 /proto/bfd
parent39a6b19d6d7e420805bd75783b77bf442745bccb (diff)
Birdlib: Do cleanups after remove/free
To avoid byzantine behavior in case of some errors, linked lists are cleared after rem_node() and resource headers are cleared after rfree().
Diffstat (limited to 'proto/bfd')
-rw-r--r--proto/bfd/bfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bfd/bfd.c b/proto/bfd/bfd.c
index 7a085791..5de2f556 100644
--- a/proto/bfd/bfd.c
+++ b/proto/bfd/bfd.c
@@ -872,7 +872,7 @@ bfd_notify_hook(sock *sk, int len)
WALK_LIST_FIRST(s, tmp_list)
{
bfd_lock_sessions(p);
- rem2_node(&s->n);
+ rem_node(&s->n);
state = s->loc_state;
diag = s->loc_diag;
bfd_unlock_sessions(p);