summaryrefslogtreecommitdiff
path: root/sbin/iked
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-08-12 20:37:31 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-08-12 20:37:31 +0000
commita0950e99bccbdf584b62a2227d4e94e59d80b273 (patch)
treed9f964fab36b2ac065f9072c487a93fb0140f965 /sbin/iked
parentc341a562d60d6c70e322b8c57c5efd0f08f2eb0f (diff)
style(9).
Diffstat (limited to 'sbin/iked')
-rw-r--r--sbin/iked/ikev2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c
index 352d3c7e3ab..414c8e2b638 100644
--- a/sbin/iked/ikev2.c
+++ b/sbin/iked/ikev2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2.c,v 1.238 2020/08/11 20:51:06 tobhe Exp $ */
+/* $OpenBSD: ikev2.c,v 1.239 2020/08/12 20:37:30 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -817,6 +817,7 @@ ikev2_ike_auth_recv(struct iked *env, struct iked_sa *sa,
{
struct iked_id *id, *certid;
struct ibuf *authmsg;
+ struct iked_policy *old;
struct iked_policy *policy = sa->sa_policy;
uint8_t *cert = NULL;
size_t certlen = 0;
@@ -841,7 +842,7 @@ ikev2_ike_auth_recv(struct iked *env, struct iked_sa *sa,
}
/* try to relookup the policy based on the peerid */
if (msg->msg_id.id_type && !sa->sa_hdr.sh_initiator) {
- struct iked_policy *old = sa->sa_policy;
+ old = sa->sa_policy;
sa->sa_policy = NULL;
if (policy_lookup(env, msg, &sa->sa_proposals) != 0 ||