From fa7bc152efa100d5d1d9f1d773f4d4128756a1a8 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Sun, 16 May 1999 21:48:38 +0000 Subject: spltdb introduced, protection for tdb lists and related structures, so they won't disappear behind our back by an expiration. Cleanup expiration logic too. --- sys/netinet/ip_ah_old.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/netinet/ip_ah_old.c') diff --git a/sys/netinet/ip_ah_old.c b/sys/netinet/ip_ah_old.c index 2bd432332f2..f087c8b26ae 100644 --- a/sys/netinet/ip_ah_old.c +++ b/sys/netinet/ip_ah_old.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ah_old.c,v 1.22 1999/03/24 17:00:45 niklas Exp $ */ +/* $OpenBSD: ip_ah_old.c,v 1.23 1999/05/16 21:48:32 niklas Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -239,7 +239,7 @@ ah_old_input(struct mbuf *m, struct tdb *tdb) { pfkeyv2_expire(tdb, SADB_EXT_LIFETIME_HARD); m_freem(m); - tdb_delete(tdb, 0); + tdb_delete(tdb, 0, TDBEXP_TIMEOUT); return NULL; } @@ -428,7 +428,7 @@ ah_old_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, (tdb->tdb_cur_bytes >= tdb->tdb_exp_bytes)) { pfkeyv2_expire(tdb, SADB_EXT_LIFETIME_HARD); - tdb_delete(tdb, 0); + tdb_delete(tdb, 0, TDBEXP_TIMEOUT); m_freem(m); return EINVAL; } -- cgit v1.2.3