summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_ipsp.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-30 11:15:38 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-30 11:15:38 +0000
commit7396efed36e04f00520521aec51864fa6674dec8 (patch)
treebb858d5f22d26874d4015ec40760dcf23a898744 /sys/netinet/ip_ipsp.c
parentfbafaf2b7449d3aab1bed177b23e1b57399d15d3 (diff)
Free remote authentication material on TDB free.
Diffstat (limited to 'sys/netinet/ip_ipsp.c')
-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 7b92ade4942..0f3ce4af16d 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.120 2001/05/30 10:56:46 angelos Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.121 2001/05/30 11:15:37 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -819,6 +819,12 @@ tdb_delete(struct tdb *tdbp)
tdbp->tdb_local_auth = NULL;
}
+ if (tdbp->tdb_remote_auth)
+ {
+ ipsp_reffree(tdbp->tdb_remote_auth);
+ tdbp->tdb_remote_auth = NULL;
+ }
+
if (tdbp->tdb_srcid)
{
ipsp_reffree(tdbp->tdb_srcid);