summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_ah_old.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-05-16 21:48:38 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-05-16 21:48:38 +0000
commitfa7bc152efa100d5d1d9f1d773f4d4128756a1a8 (patch)
treef140c66f26582a93ecb15f4b9336f7e7c4746763 /sys/netinet/ip_ah_old.c
parent60416e45015c3b4729c79c59c1322d58b4146410 (diff)
spltdb introduced, protection for tdb lists and related structures, so
they won't disappear behind our back by an expiration. Cleanup expiration logic too.
Diffstat (limited to 'sys/netinet/ip_ah_old.c')
-rw-r--r--sys/netinet/ip_ah_old.c6
1 files changed, 3 insertions, 3 deletions
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;
}