From 6998bb9ee345a0e8b558fc87133f1c2a442b7096 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 7 May 2000 11:28:34 +0000 Subject: Squashed one bug in fib_rehash(). No more routes disappearing as if struct by a lightning :) --- nest/rt-fib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nest') diff --git a/nest/rt-fib.c b/nest/rt-fib.c index 6a8f800..fb1be6e 100644 --- a/nest/rt-fib.c +++ b/nest/rt-fib.c @@ -1,7 +1,7 @@ /* * BIRD -- Forwarding Information Base -- Data Structures * - * (c) 1998 Martin Mares + * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -87,7 +87,7 @@ fib_rehash(struct fib *f, int step) newn = f->hash_size; ni = 0; - while (old--) + while (oldn--) { x = *h++; while (e = x) -- cgit v1.2.3