summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-30 10:56:47 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-30 10:56:47 +0000
commit4d71cfd8986a092cb471b70591cd9a661115c68a (patch)
tree35d8e0f4ed9f5f9fea3e7a7ed35c7134e31e61ba /sys/netinet
parente0d376b65305eb192892fc4beb1812ba831e18fb (diff)
Free local auth on TDB free.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_ipsp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c
index 22c73895bb4..7b92ade4942 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.119 2001/05/29 01:17:24 angelos Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.120 2001/05/30 10:56:46 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -813,6 +813,12 @@ tdb_delete(struct tdb *tdbp)
timeout_del(&tdbp->tdb_stimer_tmo);
timeout_del(&tdbp->tdb_sfirst_tmo);
+ if (tdbp->tdb_local_auth)
+ {
+ ipsp_reffree(tdbp->tdb_local_auth);
+ tdbp->tdb_local_auth = NULL;
+ }
+
if (tdbp->tdb_srcid)
{
ipsp_reffree(tdbp->tdb_srcid);