summaryrefslogtreecommitdiff
path: root/proto/babel
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-07-10 14:19:24 +0200
committerMaria Matejka <mq@ucw.cz>2022-07-10 14:19:24 +0200
commit7e9cede1fd1878fb4c00e793bccd0ca6c18ad452 (patch)
treea61f837bcbda9aac2c6278d6f3e256e17b41aac3 /proto/babel
parent652be92a21f5575e5f74f6abe98eb4200b86776c (diff)
parentb867c798c3e42c875311a79fe53a36d4a5bfd126 (diff)
Merge version 2.0.10 into backport
Diffstat (limited to 'proto/babel')
-rw-r--r--proto/babel/babel.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/proto/babel/babel.c b/proto/babel/babel.c
index 1d3e4234..d9ebfbad 100644
--- a/proto/babel/babel.c
+++ b/proto/babel/babel.c
@@ -312,7 +312,9 @@ babel_add_seqno_request(struct babel_proto *p, struct babel_entry *e,
/* Found older */
rem_node(NODE sr);
- rem_node(&sr->nbr_node);
+
+ if (sr->nbr)
+ rem_node(&sr->nbr_node);
goto found;
}
@@ -452,10 +454,7 @@ babel_flush_neighbor(struct babel_proto *p, struct babel_neighbor *nbr)
struct babel_seqno_request *sr;
WALK_LIST_FIRST2(sr, nbr_node, nbr->requests)
- {
- sr->nbr = NULL;
- rem_node(&sr->nbr_node);
- }
+ babel_remove_seqno_request(p, sr);
nbr->ifa = NULL;
rem_node(NODE nbr);