]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Squashed one bug in fib_rehash(). No more routes disappearing as if struct
authorMartin Mares <mj@ucw.cz>
Sun, 7 May 2000 11:28:34 +0000 (11:28 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 7 May 2000 11:28:34 +0000 (11:28 +0000)
by a lightning :)

nest/rt-fib.c

index 6a8f80098b56a77c1021d1cc0df105193fbef0fd..fb1be6e2f6d73192cb07bd0c90bd2ab555d9e3ab 100644 (file)
@@ -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)