summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-08 16:51:26 +0200
committerMartin Mares <mj@ucw.cz>2000-05-08 16:51:26 +0200
commite48dae3ed70daf52ad93c4fdc73270ab1510661f (patch)
treec2402c37182d207853719a10898832932e2f7f20
parent9ff8f334edec974b16497e1e74172977e0fff221 (diff)
downloadbird-e48dae3ed70daf52ad93c4fdc73270ab1510661f.tar
bird-e48dae3ed70daf52ad93c4fdc73270ab1510661f.zip
Stop feeding the protocol if it suddenly shuts down.
-rw-r--r--nest/rt-table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 2cf675a..975874a 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -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;