summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-03-31 20:29:38 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-03-31 20:29:38 +0000
commitbf22eb7e832691ee857bfb6680b2b67f80865278 (patch)
tree012683a7fdd5d20789575525b701902f6942d239 /sbin
parent68b34b890d565bb0aeb1edeb2eba70e05bcd7067 (diff)
Merge with EOM 1.87
Use SA refcounting where needed
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/ipsec.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/isakmpd/ipsec.c b/sbin/isakmpd/ipsec.c
index 828d68887ef..54f4db148ee 100644
--- a/sbin/isakmpd/ipsec.c
+++ b/sbin/isakmpd/ipsec.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: ipsec.c,v 1.9 1999/03/31 14:27:37 niklas Exp $ */
-/* $EOM: ipsec.c,v 1.86 1999/03/31 14:19:51 niklas Exp $ */
+/* $OpenBSD: ipsec.c,v 1.10 1999/03/31 20:29:37 niklas Exp $ */
+/* $EOM: ipsec.c,v 1.87 1999/03/31 20:22:18 niklas Exp $ */
/*
* Copyright (c) 1998 Niklas Hallqvist. All rights reserved.
@@ -361,7 +361,10 @@ ipsec_finalize_exchange (struct message *msg)
/* Mark elder SAs with the same flow information as replaced. */
while ((old_sa = sa_find (ipsec_sa_check_flow, sa)) != 0)
- sa_mark_replaced (old_sa);
+ {
+ sa_reference (old_sa);
+ sa_mark_replaced (old_sa);
+ }
}
exchange->name = 0;
break;