diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-07 11:28:34 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-07 11:28:34 +0000 |
commit | 6998bb9ee345a0e8b558fc87133f1c2a442b7096 (patch) | |
tree | 87ebb123a5aa075f6dbf2662cb498a9c1c84aa1a /nest | |
parent | 891cec854f84674317fa152b71254fc52d893826 (diff) |
Squashed one bug in fib_rehash(). No more routes disappearing as if struct
by a lightning :)
Diffstat (limited to 'nest')
-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 6a8f8009..fb1be6e2 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) |