summaryrefslogtreecommitdiff
path: root/proto/static
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-09-21 13:39:13 +0200
committerMaria Matejka <mq@ucw.cz>2022-09-21 17:48:31 +0200
commit05c63ae734f4dcfeb479e4bd69550f6ce4fef1d7 (patch)
tree2a5e61013e6832b3f60adbb0da175aca70feb9aa /proto/static
parent30a909f9bc3b18182070f7385342f7fbcb41dbdd (diff)
Flushing tmp_linpool in tree test and in static protocol
Diffstat (limited to 'proto/static')
-rw-r--r--proto/static/static.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/static/static.c b/proto/static/static.c
index cb764a1c..42fd20b7 100644
--- a/proto/static/static.c
+++ b/proto/static/static.c
@@ -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;
}