summaryrefslogtreecommitdiffstats
path: root/nest/proto.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-08-11 11:03:37 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-08-11 11:03:37 +0200
commitac07aacd2cdb5cf69a3bfdbc0e078cb0ae96c0db (patch)
tree2976b312fb6d0be297e8c8b1b6eac7613334375d /nest/proto.c
parent024e633c16cf21ae94d7e023e057e59080f92175 (diff)
downloadbird-ac07aacd2cdb5cf69a3bfdbc0e078cb0ae96c0db.tar
bird-ac07aacd2cdb5cf69a3bfdbc0e078cb0ae96c0db.zip
Replace assert with log.
Although it is true unless there is a bug in BIRD, this assert is not needed (code below does not require that assumption), so we should not crash.
Diffstat (limited to 'nest/proto.c')
-rw-r--r--nest/proto.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nest/proto.c b/nest/proto.c
index 2af077b..d079213 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -515,7 +515,9 @@ static void
proto_fell_down(struct proto *p)
{
DBG("Protocol %s down\n", p->name);
- ASSERT(p->stats.imp_routes == 0);
+
+ if (p->stats.imp_routes != 0)
+ log(L_ERR "Protocol %s is down but still has %d routes", p->name, p->stats.imp_routes);
bzero(&p->stats, sizeof(struct proto_stats));
rt_unlock_table(p->table);