From 086076ee3c9d656911195e201d07c37f171ce07d Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Sun, 17 May 1998 16:52:57 +0000 Subject: fix tdb_delete() when using SPI chains. --- sys/netinet/ip_ipsp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c index cf3dd121b6b..23d0b50b1fc 100644 --- a/sys/netinet/ip_ipsp.c +++ b/sys/netinet/ip_ipsp.c @@ -1,5 +1,5 @@ -/* $OpenBSD: ip_ipsp.c,v 1.24 1998/02/22 01:23:33 niklas Exp $ */ +/* $OpenBSD: ip_ipsp.c,v 1.25 1998/05/17 16:52:56 provos Exp $ */ /* * The author of this code is John Ioannidis, ji@tla.org, @@ -482,6 +482,10 @@ tdb_delete(struct tdb *tdbp, int delchain) if (tdbp->tdb_inext) tdbp->tdb_inext->tdb_onext = NULL; + /* If there was something after us in the chain, make it point nowhere */ + if (tdbp->tdb_onext) + tdbp->tdb_onext->tdb_inext = NULL; + tdbpp = tdbp->tdb_onext; if (tdbp->tdb_xform) -- cgit v1.2.3