]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Table export: consider route never seen before actually nonexistent
authorMaria Matejka <mq@ucw.cz>
Mon, 10 Mar 2025 14:58:33 +0000 (15:58 +0100)
committerKaterina Kubecova <katerina.kubecova@nic.cz>
Wed, 23 Apr 2025 14:17:50 +0000 (16:17 +0200)
This may trigger some spurious warnings.

nest/rt-table.c

index 91199ebbd60e42e6e4c57fdff4fbf4734b849848..b604596a922fbe098f3fffabf660309973bc69d0 100644 (file)
@@ -1191,7 +1191,7 @@ rt_notify_basic(struct channel *c, const rte *new, const rte *old)
     int accepted = bmap_test(&c->export_accepted_map, old->id);
     ASSERT_DIE(!rejected || !accepted);
 
-    if (rejected)
+    if (!accepted)
     {
       /* Drop the old rejected bit from the map, the old route id
        * gets released after exports. */