From bf22eb7e832691ee857bfb6680b2b67f80865278 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Wed, 31 Mar 1999 20:29:38 +0000 Subject: Merge with EOM 1.87 Use SA refcounting where needed --- sbin/isakmpd/ipsec.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sbin') 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; -- cgit v1.2.3