diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-01-10 01:19:17 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-01-10 01:19:17 +0000 |
commit | b318b88cef9eb7755f125bb799fc6ea246d328b8 (patch) | |
tree | ebfcd0c939661a4d48946e3aeec76c132ad7e1bb /sys/netinet | |
parent | c110d267db53b3124404de95fa59de1c69c2829e (diff) |
Free ACL when deleting TDB.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_ipsp.c | 5 |
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. */ |