summaryrefslogtreecommitdiff
path: root/sbin/iked/policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/iked/policy.c')
-rw-r--r--sbin/iked/policy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/iked/policy.c b/sbin/iked/policy.c
index dc6b3e76803..1e39beac2ff 100644
--- a/sbin/iked/policy.c
+++ b/sbin/iked/policy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: policy.c,v 1.96 2023/08/14 11:55:03 tobhe Exp $ */
+/* $OpenBSD: policy.c,v 1.97 2023/11/10 08:03:02 tobhe Exp $ */
/*
* Copyright (c) 2020-2021 Tobias Heider <tobhe@openbsd.org>
@@ -1133,8 +1133,7 @@ proposals_match(struct iked_proposal *local, struct iked_proposal *peer,
continue;
type = tpeer->xform_type;
- if (rekey && nodh == 0 && dhgroup >= 0 &&
- protoid == IKEV2_SAPROTO_ESP &&
+ if (nodh == 0 && dhgroup >= 0 &&
type == IKEV2_XFORMTYPE_DH) {
if (dhforced)
continue;