summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-01-10 01:19:17 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-01-10 01:19:17 +0000
commitb318b88cef9eb7755f125bb799fc6ea246d328b8 (patch)
treeebfcd0c939661a4d48946e3aeec76c132ad7e1bb /sys/netinet
parentc110d267db53b3124404de95fa59de1c69c2829e (diff)
Free ACL when deleting TDB.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_ipsp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c
index 18d5fe7d156..e9be6127ddb 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.63 2000/01/09 23:02:15 angelos Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.64 2000/01/10 01:19:16 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -1061,6 +1061,9 @@ tdb_delete(struct tdb *tdbp, int delchain, int expflags)
if (tdbp->tdb_xform)
(*(tdbp->tdb_xform->xf_zeroize))(tdbp);
+ while (tdbp->tdb_access)
+ delete_flow(tdbp->tdb_access, tdbp);
+
while (tdbp->tdb_flow)
{
/* Delete the flow and the routing entry that goes with it. */