diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-03-04 20:34:01 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-03-04 20:34:01 +0000 |
commit | b3552319e0a4fc708f980ca2e241fda39eac5ccf (patch) | |
tree | 0c1a81e157abacf56c8dbe96cb92b8515c36e25b /sys/netinet/ip_ipsp.c | |
parent | a573b477e71dc804e389953d9a30d2882335e524 (diff) |
Store peer's credentials in TDB.
Diffstat (limited to 'sys/netinet/ip_ipsp.c')
-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 12402f5f875..0108e960816 100644 --- a/sys/netinet/ip_ipsp.c +++ b/sys/netinet/ip_ipsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.c,v 1.106 2001/02/28 04:16:57 angelos Exp $ */ +/* $OpenBSD: ip_ipsp.c,v 1.107 2001/03/04 20:34:00 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -910,6 +910,12 @@ tdb_delete(struct tdb *tdbp, int expflags) tdbp->tdb_dstid = NULL; } + if (tdbp->tdb_credentials) + { + FREE(tdbp->tdb_credentials, M_XDATA); + tdbp->tdb_credentials = NULL; + } + if ((tdbp->tdb_onext) && (tdbp->tdb_onext->tdb_inext == tdbp)) tdbp->tdb_onext->tdb_inext = NULL; |