]> 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)
committerMaria Matejka <mq@ucw.cz>
Mon, 10 Mar 2025 14:58:33 +0000 (15:58 +0100)
This may trigger some spurious warnings.

nest/rt-table.c

index 553849cec4b17eea0b8581ac228a1afdf38fdd5c..845b062edd306b3984c45ce84d1505cb014a8f5b 100644 (file)
@@ -1186,7 +1186,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. */