summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobhe <tobhe@openbsd.org>2019-08-29 14:56:23 +0000
committertobhe <tobhe@openbsd.org>2019-08-29 14:56:23 +0000
commit8d2de7ce1a83f7eefceb37d8712e8ca0d7da27cc (patch)
treef2a9384d3cadaa70c766f7845874a6e991310112
parentroute(8) used inet/inet6 autodetection also for the link address (diff)
downloadwireguard-openbsd-8d2de7ce1a83f7eefceb37d8712e8ca0d7da27cc.tar.xz
wireguard-openbsd-8d2de7ce1a83f7eefceb37d8712e8ca0d7da27cc.zip
Remove redundant ikev2_msg_valid_ike_sa() call.
ok patrick@
-rw-r--r--sbin/iked/ikev2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c
index dcc662cd5b2..17afb5e0e95 100644
--- a/sbin/iked/ikev2.c
+++ b/sbin/iked/ikev2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2.c,v 1.174 2019/08/24 13:09:38 tobhe Exp $ */
+/* $OpenBSD: ikev2.c,v 1.175 2019/08/29 14:56:23 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -833,9 +833,6 @@ ikev2_init_recv(struct iked *env, struct iked_message *msg,
break;
case IKEV2_EXCHANGE_IKE_AUTH:
case IKEV2_EXCHANGE_CREATE_CHILD_SA:
- if (ikev2_msg_valid_ike_sa(env, hdr, msg) == -1)
- return;
- break;
case IKEV2_EXCHANGE_INFORMATIONAL:
break;
default: