mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Babel: Seqno requests are properly decoupled from neighbors when the underlying interface disappears
When an interface disappears, all the neighbors are freed as well. Seqno requests were anyway not decoupled from them, leading to strange segfaults. This fix adds a proper seqno request list inside neighbors to make sure that no pointer to neighbor is kept after free.
This commit is contained in:
@@ -59,6 +59,8 @@ typedef union list { /* In fact two overlayed nodes */
|
||||
/* WALK_LIST_FIRST supposes that called code removes each processed node */
|
||||
#define WALK_LIST_FIRST(n,list) \
|
||||
while(n=HEAD(list), (NODE (n))->next)
|
||||
#define WALK_LIST_FIRST2(n,pos,list) \
|
||||
while(n=SKIP_BACK(typeof(*n),pos,HEAD(list)), (n)->pos.next)
|
||||
#define WALK_LIST_BACKWARDS(n,list) for(n=TAIL(list);(NODE (n))->prev; \
|
||||
n=(void *)((NODE (n))->prev))
|
||||
#define WALK_LIST_BACKWARDS_DELSAFE(n,prv,list) \
|
||||
|
||||
Reference in New Issue
Block a user