summaryrefslogtreecommitdiff
path: root/sbin/iked
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-09-06 19:08:59 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-09-06 19:08:59 +0000
commitb45bce942e9101f6e1748cbd470e9a0bca729457 (patch)
tree99efe555439ecf7eed45d6d557e529fc6fce2476 /sbin/iked
parent511bde83b2a434e86bf8662fdc310842838db142 (diff)
Drop redundant else for readability.
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 c7351d746e7..10fb424f53b 100644
--- a/sbin/iked/ikev2.c
+++ b/sbin/iked/ikev2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2.c,v 1.254 2020/09/05 19:17:36 tobhe Exp $ */
+/* $OpenBSD: ikev2.c,v 1.255 2020/09/06 19:08:58 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -4763,7 +4763,8 @@ ikev2_sa_negotiate_common(struct iked *env, struct iked_sa *sa, struct iked_mess
&msg->msg_policy->pol_proposals, &msg->msg_proposals, 0) != 0) {
log_info("%s: proposals_negotiate", __func__);
return (-1);
- } else if (sa_stateok(sa, IKEV2_STATE_SA_INIT))
+ }
+ if (sa_stateok(sa, IKEV2_STATE_SA_INIT))
sa_stateflags(sa, IKED_REQ_SA);
if (sa->sa_encr == NULL) {