From 4619cf54af73e542b3cf5ec2108b4d13f2f06a1a Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Tue, 12 Dec 2000 01:47:13 +0000 Subject: Merge with EOM 1.112 author: niklas style author: angelos Don't limit Phase 1 SA establishment -- while this does limit resource consumption, it's neither foolproof nor entirely correct (it introduces some synchronization problems). --- sbin/isakmpd/sa.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sbin/isakmpd/sa.c b/sbin/isakmpd/sa.c index 94bedf804fd..1313fd6ef09 100644 --- a/sbin/isakmpd/sa.c +++ b/sbin/isakmpd/sa.c @@ -1,5 +1,5 @@ -/* $OpenBSD: sa.c,v 1.32 2000/10/16 23:27:43 niklas Exp $ */ -/* $EOM: sa.c,v 1.110 2000/10/16 18:16:59 provos Exp $ */ +/* $OpenBSD: sa.c,v 1.33 2000/12/12 01:47:12 niklas Exp $ */ +/* $EOM: sa.c,v 1.112 2000/12/12 00:22:52 niklas Exp $ */ /* * Copyright (c) 1998, 1999, 2000 Niklas Hallqvist. All rights reserved. @@ -625,7 +625,9 @@ sa_add_transform (struct sa *sa, struct payload *xf, int initiator, void sa_delete (struct sa *sa, int notify) { - message_send_delete (sa); + /* Don't bother notifying of Phase 1 SA deletes. */ + if (sa->phase != 1) + message_send_delete (sa); sa_free (sa); } -- cgit v1.2.3