From: patrick Date: Mon, 4 Dec 2017 17:22:39 +0000 (+0000) Subject: Remove duplicate check that never could execute because the exact same X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c13b5084c20ad9f2af5cd5b89f989a25147985c7;p=openbsd Remove duplicate check that never could execute because the exact same condition is handled a line before. --- diff --git a/sbin/iked/ikev2_pld.c b/sbin/iked/ikev2_pld.c index f3e21c3a41c..71dd30af0dd 100644 --- a/sbin/iked/ikev2_pld.c +++ b/sbin/iked/ikev2_pld.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2_pld.c,v 1.67 2017/12/04 17:03:43 patrick Exp $ */ +/* $OpenBSD: ikev2_pld.c,v 1.68 2017/12/04 17:22:39 patrick Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter @@ -369,11 +369,6 @@ ikev2_pld_sa(struct iked *env, struct ikev2_payload *pld, sap.sap_spisize); return (-1); } - if (total < sap.sap_spisize) { - log_debug("%s: malformed payload: SPI too large " - "(%zu < %d)", __func__, total, sap.sap_spisize); - return (-1); - } switch (sap.sap_spisize) { case 4: memcpy(&spi32, msgbuf + offset, 4);