mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 20:28:43 +00:00
Squashed one bug in fib_rehash(). No more routes disappearing as if struct
by a lightning :)
This commit is contained in:
parent
891cec854f
commit
6998bb9ee3
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* BIRD -- Forwarding Information Base -- Data Structures
|
* 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.
|
* 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;
|
newn = f->hash_size;
|
||||||
ni = 0;
|
ni = 0;
|
||||||
|
|
||||||
while (old--)
|
while (oldn--)
|
||||||
{
|
{
|
||||||
x = *h++;
|
x = *h++;
|
||||||
while (e = x)
|
while (e = x)
|
||||||
|
Loading…
Reference in New Issue
Block a user