From 65c59849e3030ee11501732fa83d49321a74a73f Mon Sep 17 00:00:00 2001 From: patrick Date: Mon, 4 Dec 2017 16:57:40 +0000 Subject: [PATCH] Remove check that is now a duplicate due to recent refactoring. --- sbin/iked/ikev2_pld.c | 12 +----------- 1 file changed, 1 insertion(+), 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 @@ -303,16 +303,6 @@ ikev2_validate_sa(struct iked_message *msg, size_t offset, size_t left, "size (%zu < %zu)", __func__, left, sap_length); 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. -- 2.20.1