summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1998-05-17 16:52:57 +0000
committerNiels Provos <provos@cvs.openbsd.org>1998-05-17 16:52:57 +0000
commit086076ee3c9d656911195e201d07c37f171ce07d (patch)
treec0b6586e7d58bf0b0a3bed4ee98e31590bfb77ec /sys
parentc4038115a9e7520385901e375826e00b9b29f895 (diff)
fix tdb_delete() when using SPI chains.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_ipsp.c6
1 files changed, 5 insertions, 1 deletions
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)