]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Stop feeding the protocol if it suddenly shuts down.
authorMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 14:51:26 +0000 (14:51 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 14:51:26 +0000 (14:51 +0000)
nest/rt-table.c

index 2cf675adc23e895c4b95158096149b064faf6e00..975874a07b313590c45e8768e690d9b99ae9e555 100644 (file)
@@ -209,6 +209,8 @@ rt_feed_baby(struct proto *p)
              ea_list *tmpa = q->make_tmp_attrs ? q->make_tmp_attrs(e, rte_update_pool) : NULL;
              do_rte_announce(h, n, e, NULL, tmpa, ipa_classify(n->n.prefix));
              lp_flush(rte_update_pool);
+             if (p->core_state != FS_FEEDING)
+               return;  /* In the meantime, the protocol fell down. */
            }
        }
       FIB_WALK_END;