From 05c63ae734f4dcfeb479e4bd69550f6ce4fef1d7 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Wed, 21 Sep 2022 13:39:13 +0200 Subject: Flushing tmp_linpool in tree test and in static protocol --- proto/static/static.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'proto/static/static.c') 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; } -- cgit v1.2.3