X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Frbl.c;h=0edc0ffbcb73b01221b4c0522e2dd0336c532ca1;hp=32e87bbdef25fe9ffcbe8b1af696e21ca04fbaf7;hb=4f68e5b6133480478edba0959cb87d4eb149a8e7;hpb=880cd6f1a94ef76ebebc5bd96dd26d62e3d829f4 diff --git a/lib/rbl.c b/lib/rbl.c index 32e87bbd..0edc0ffb 100644 --- a/lib/rbl.c +++ b/lib/rbl.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: rbl.c,v 1.1.2.3 2000/11/18 23:21:00 guus Exp $ + $Id: rbl.c,v 1.1.2.4 2000/11/18 23:22:44 guus Exp $ */ @@ -190,6 +190,14 @@ rbl_t rbl_insert_rbl(rbltree_t *tree, rbl_t *rbl) else tree->top = rbl; + /* Linked list fixup */ + + if(!rbl->prev) + tree->head = rbl; + + if(!rbl->next) + tree->tail = rbl; + /* Red-black part of insert */ rbl->color = RBL_RED;