summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-03-13 01:23:19 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-03-13 01:23:19 +0000
commit31e6b18f313ef3f43274ff87eb42ed34155569ef (patch)
treedf4240d960b96bb48e029b9d0b767fe658b03212
parent3d7dd3ab39b4cb85851af713a545746f61f4b154 (diff)
Force a new search for an SA if the latched one is deleted.
-rw-r--r--sys/netinet/ip_ipsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c
index 0108e960816..a8239aff0b3 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.107 2001/03/04 20:34:00 angelos Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.108 2001/03/13 01:23:18 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -888,6 +888,7 @@ tdb_delete(struct tdb *tdbp, int expflags)
{
TAILQ_REMOVE(&tdbp->tdb_policy_head, ipo, ipo_tdb_next);
ipo->ipo_tdb = NULL;
+ ipo->ipo_last_searched = 0; /* Force a re-search */
}
/* Remove us from the expiration lists. */