]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Patch ASPA aggregation during serial queries
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 23 Mar 2026 21:51:10 +0000 (15:51 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 23 Mar 2026 21:51:10 +0000 (15:51 -0600)
On collision, The RTR server was announcing the old ASPA,
not the new one.

Fixes #170.

src/rtr/db/db_table.c

index 0afa4773050326085631bb8b50d91d00023992b7..534213967cc966f432bea45d2cae57c399700d9e 100644 (file)
@@ -437,7 +437,7 @@ add_aspa_announcements(struct hashable_aspa *old, struct hashable_aspa *new,
        HASH_ITER(hh, new, n, tmp) {
                HASH_FIND(hh, old, &n->v->customer, sizeof(n->v->customer), o);
                if (o == NULL || !providers_equal(&o->v->providers, &n->v->providers))
-                       deltas_add_aspa(deltas, o->v, FLAG_ANNOUNCEMENT);
+                       deltas_add_aspa(deltas, n->v, FLAG_ANNOUNCEMENT);
        }
 }