]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Ignore updates if protocol is not UP
authorIgor Putovny <igor.putovny@nic.cz>
Fri, 31 May 2024 14:20:52 +0000 (16:20 +0200)
committerIgor Putovny <igor.putovny@nic.cz>
Fri, 31 May 2024 14:20:52 +0000 (16:20 +0200)
proto/aggregator/aggregator.c

index 3aa1e52a067ee132709898a7993d91a43ae45ecb..c19cd02d4680290fc13fc64f1e288975c325a629 100644 (file)
@@ -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);