summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-11-27 21:48:38 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-11-27 21:48:38 +0000
commit44ff951d16cdc9912a0ffcaa00d741d1cda7f0cc (patch)
treefe0f18f831a0cec9390cc85138f27c3720e9e1e1 /sbin
parente2259db4ef05ca9a18fbde4702590045d13f571a (diff)
Remove redundant state change. ikev2_ikesa_delete() sets the correct state.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/iked/ikev2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c
index 13d00e50524..f58bb497e0e 100644
--- a/sbin/iked/ikev2.c
+++ b/sbin/iked/ikev2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2.c,v 1.287 2020/11/25 22:17:13 tobhe Exp $ */
+/* $OpenBSD: ikev2.c,v 1.288 2020/11/27 21:48:37 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -4093,7 +4093,6 @@ ikev2_init_create_child_sa(struct iked *env, struct iked_message *msg)
sa->sa_nextr->sa_prevr = NULL;
sa->sa_nextr = NULL;
/* Setup address, socket and NAT information */
- sa_state(env, dsa, IKEV2_STATE_CLOSING);
sa_address(dsa, &dsa->sa_peer,
(struct sockaddr *)&sa->sa_peer.addr);
sa_address(dsa, &dsa->sa_local,