Fixed a very nasty bug in FIB iterators.

This commit is contained in:
Martin Mares 2000-05-19 19:40:12 +00:00
parent d2a7c0e9b2
commit 0ba8a6147d
2 changed files with 1 additions and 3 deletions

2
TODO
View file

@ -4,8 +4,6 @@ Core
- client: paging?
- client: data losses on large dumps?
- table: ocassional core dumps in rt_prune()
Documentation
~~~~~~~~~~~~~
- write doctool

View file

@ -42,9 +42,9 @@ struct fib_node {
struct fib_iterator { /* See lib/slists.h for an explanation */
struct fib_iterator *prev, *next; /* Must be synced with struct fib_node! */
struct fib_node *node; /* Or NULL if freshly merged */
byte efef; /* 0xff to distinguish between iterator and node */
byte pad[3];
struct fib_node *node; /* Or NULL if freshly merged */
unsigned int hash;
};