From: Igor Putovny Date: Fri, 31 May 2024 14:20:52 +0000 (+0200) Subject: Ignore updates if protocol is not UP X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4d5b4f02c5f5ca0b118340aa234f043d219ae2c;p=thirdparty%2Fbird.git Ignore updates if protocol is not UP --- diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index 3aa1e52a0..c19cd02d4 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -1290,6 +1290,10 @@ aggregator_rt_notify(struct proto *P, struct channel *src_ch, net *net, rte *new struct aggregator_bucket *new_bucket = NULL, *old_bucket = NULL; struct aggregator_route *old_route = NULL; + /* Ignore all updates if protocol is not up */ + if (p->p.proto_state != PS_UP) + return; + /* Find the objects for the old route */ if (old) old_route = HASH_FIND(p->routes, AGGR_RTE, old);