summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_esp_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_esp_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_esp_old.c')
-rw-r--r--sys/netinet/ip_esp_old.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_esp_old.c b/sys/netinet/ip_esp_old.c
index af389a112b8..b797313e87f 100644
--- a/sys/netinet/ip_esp_old.c
+++ b/sys/netinet/ip_esp_old.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp_old.c,v 1.33 1999/05/12 22:58:48 ho Exp $ */
+/* $OpenBSD: ip_esp_old.c,v 1.34 1999/05/16 21:48:33 niklas Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -292,7 +292,7 @@ esp_old_input(struct mbuf *m, 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 NULL;
}
@@ -608,7 +608,7 @@ esp_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;
}