summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/iked/ikev2_pld.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sbin/iked/ikev2_pld.c b/sbin/iked/ikev2_pld.c
index 07efd45c75c..02acfd25735 100644
--- a/sbin/iked/ikev2_pld.c
+++ b/sbin/iked/ikev2_pld.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2_pld.c,v 1.65 2017/12/04 16:52:16 patrick Exp $ */
+/* $OpenBSD: ikev2_pld.c,v 1.66 2017/12/04 16:57:40 patrick Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -304,16 +304,6 @@ ikev2_validate_sa(struct iked_message *msg, size_t offset, size_t left,
return (-1);
}
/*
- * NB: There might be more proposals, we parse only the first one.
- * This condition must never be true.
- */
- if (left < sap_length) {
- log_debug("%s: payload malformed: SA payload length mismatches "
- "proposal substructure length (%lu < %zu)", __func__,
- left, sap_length);
- return (-1);
- }
- /*
* If there is only one proposal, sap_length must be the
* total payload size.
*/