diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-07 13:28:34 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-07 13:28:34 +0200 |
commit | 6998bb9ee345a0e8b558fc87133f1c2a442b7096 (patch) | |
tree | 87ebb123a5aa075f6dbf2662cb498a9c1c84aa1a | |
parent | 891cec854f84674317fa152b71254fc52d893826 (diff) | |
download | bird-6998bb9ee345a0e8b558fc87133f1c2a442b7096.tar bird-6998bb9ee345a0e8b558fc87133f1c2a442b7096.zip |
Squashed one bug in fib_rehash(). No more routes disappearing as if struct
by a lightning :)
-rw-r--r-- | nest/rt-fib.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <mj@ucw.cz> + * (c) 1998--2000 Martin Mares <mj@ucw.cz> * * 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) |