diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-11-16 12:59:21 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-11-16 12:59:21 +0000 |
commit | c575c1936b8c2b8e51c8df1a62627df91f190bd3 (patch) | |
tree | 488d1247795f76d9a6f28984aa5a221038547751 | |
parent | 55542355b0c64b35fb76aa682f2524b239ef16b6 (diff) |
Backout ikev2_init_auth() return check to fix regression with
certificate authentication.
Reported by Mark Patruck <mark (at) wrapped (dot) cx>
-rw-r--r-- | sbin/iked/ikev2.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c index 989cce5dd22..65ad2a2e9c6 100644 --- a/sbin/iked/ikev2.c +++ b/sbin/iked/ikev2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2.c,v 1.281 2020/11/14 20:14:07 tobhe Exp $ */ +/* $OpenBSD: ikev2.c,v 1.282 2020/11/16 12:59:20 tobhe Exp $ */ /* * Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de> @@ -1086,13 +1086,7 @@ ikev2_init_recv(struct iked *env, struct iked_message *msg, if (ikev2_handle_certreq(env, msg) != 0) return; - if (ikev2_init_auth(env, msg) != 0) { - ikev2_ike_sa_setreason(sa, - "failed to initiate IKE_AUTH exchange"); - sa_state(env, sa, IKEV2_STATE_CLOSED); - msg->msg_sa = NULL; - return; - } + (void)ikev2_init_auth(env, msg); break; case IKEV2_EXCHANGE_IKE_AUTH: if (msg->msg_flags & IKED_MSG_FLAGS_AUTHENTICATION_FAILED) { |