diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-12-04 17:22:40 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-12-04 17:22:40 +0000 |
commit | 702f8cbe0457a4f0a5b545782ae3c164ff973361 (patch) | |
tree | 4ef923a015fe3f5aa118cfb638be54e6842f07de | |
parent | aaac3baaca2e1a7b80f96ad41d6d9424677adf34 (diff) |
Remove duplicate check that never could execute because the exact same
condition is handled a line before.
-rw-r--r-- | sbin/iked/ikev2_pld.c | 7 |
1 files changed, 1 insertions, 6 deletions
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 <reyk@openbsd.org> @@ -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); |