summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-04-30 23:32:09 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-04-30 23:32:09 +0000
commit68d02e1c31e022386be1c2416e5fb4509d7d11d1 (patch)
tree69475b25fa503246005c8dca6d1b9fa4ba21bfbf /sbin
parent617caab60085feb9989ac5fb2fd45d382a7fe0ac (diff)
Merge with EOM 1.106
author: niklas Informational exchanges do not have SAs
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/ipsec.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/sbin/isakmpd/ipsec.c b/sbin/isakmpd/ipsec.c
index c112374cb4b..8dbdb37819c 100644
--- a/sbin/isakmpd/ipsec.c
+++ b/sbin/isakmpd/ipsec.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: ipsec.c,v 1.15 1999/04/30 11:47:41 niklas Exp $ */
-/* $EOM: ipsec.c,v 1.105 1999/04/29 12:08:47 niklas Exp $ */
+/* $OpenBSD: ipsec.c,v 1.16 1999/04/30 23:32:08 niklas Exp $ */
+/* $EOM: ipsec.c,v 1.106 1999/04/30 23:25:28 niklas Exp $ */
/*
* Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved.
@@ -256,13 +256,12 @@ ipsec_finalize_exchange (struct message *msg)
switch (exchange->phase)
{
case 1:
- isakmp_sa = msg->isakmp_sa;
- isa = isakmp_sa->data;
-
switch (exchange->type)
{
case ISAKMP_EXCH_ID_PROT:
case ISAKMP_EXCH_AGGRESSIVE:
+ isakmp_sa = msg->isakmp_sa;
+ isa = isakmp_sa->data;
isa->hash = ie->hash->type;
isa->prf_type = ie->prf_type;
isa->skeyid_len = ie->skeyid_len;
@@ -270,12 +269,12 @@ ipsec_finalize_exchange (struct message *msg)
isa->skeyid_a = ie->skeyid_a;
/* Prevents early free of SKEYID_*. */
ie->skeyid_a = ie->skeyid_d = 0;
+
+ /* If a lifetime was negotiated setup the expiration timers. */
+ if (isakmp_sa->seconds)
+ sa_setup_expirations (isakmp_sa);
break;
}
-
- /* If a lifetime was negotiated setup the expiration timers. */
- if (isakmp_sa->seconds)
- sa_setup_expirations (isakmp_sa);
break;
case 2: