]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fix incorrect use of SKIP_BACK
authorIgor Putovny <igor.putovny@nic.cz>
Thu, 30 May 2024 11:07:48 +0000 (13:07 +0200)
committerIgor Putovny <igor.putovny@nic.cz>
Thu, 30 May 2024 11:07:48 +0000 (13:07 +0200)
proto/aggregator/aggregator.c

index a4c20856956c1b96453e676a23e27a2f00ddc63b..21251e3190e641cc2596e53caf01ab6102da5ad5 100644 (file)
@@ -923,7 +923,7 @@ run_aggregation(struct aggregator_proto *p)
 static void
 aggregate_on_feed_end(struct channel *C)
 {
-  struct aggregator_proto *p = SKIP_BACK(struct aggregator_proto, p, C);
+  struct aggregator_proto *p = SKIP_BACK(struct aggregator_proto, p, C->proto);
 
   /* Run aggregation only on feed end from the source channel */
   if (C == p->src)
@@ -931,9 +931,9 @@ aggregate_on_feed_end(struct channel *C)
 }
 
 static void
-aggregate_on_settle_timer(struct settle *timer)
+aggregate_on_settle_timer(struct settle *s)
 {
-  struct aggregator_proto *p = SKIP_BACK(struct aggregator_proto, p, timer);
+  struct aggregator_proto *p = SKIP_BACK(struct aggregator_proto, p, s->tm.data);
   run_aggregation(p);
 }