diff options
author | 2001-05-30 11:15:37 +0000 | |
---|---|---|
committer | 2001-05-30 11:15:37 +0000 | |
commit | 02df8090cc898f0f10aef68c939e1b98f22f626a (patch) | |
tree | 548b3bac243f36ff18b408624923982cc9c3ac33 | |
parent | Keep track of remote authentication material (like public key) as well. (diff) | |
download | wireguard-openbsd-02df8090cc898f0f10aef68c939e1b98f22f626a.tar.xz wireguard-openbsd-02df8090cc898f0f10aef68c939e1b98f22f626a.zip |
Free remote authentication material on TDB free.
-rw-r--r-- | sys/netinet/ip_ipsp.c | 8 |
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); |