1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Flushing tmp_linpool in tree test and in static protocol

This commit is contained in:
Maria Matejka
2022-09-21 13:39:13 +02:00
parent 30a909f9bc
commit 05c63ae734
2 changed files with 18 additions and 0 deletions

View File

@@ -494,7 +494,12 @@ static_start(struct proto *P)
proto_notify_state(P, PS_UP);
WALK_LIST(r, cf->routes)
{
struct lp_state lps;
lp_save(tmp_linpool, &lps);
static_add_rte(p, r);
lp_restore(tmp_linpool, &lps);
}
return PS_UP;
}