From 7396efed36e04f00520521aec51864fa6674dec8 Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Wed, 30 May 2001 11:15:38 +0000 Subject: Free remote authentication material on TDB free. --- sys/netinet/ip_ipsp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys') 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); -- cgit v1.2.3