diff options
author | 2017-12-04 17:22:39 +0000 | |
---|---|---|
committer | 2017-12-04 17:22:39 +0000 | |
commit | c13b5084c20ad9f2af5cd5b89f989a25147985c7 (patch) | |
tree | 9f17fa4e65ed15556abc949a7a8937f042af922f | |
parent | Consistently log "malformed payload" instead of "payload malformed", and (diff) | |
download | wireguard-openbsd-c13b5084c20ad9f2af5cd5b89f989a25147985c7.tar.xz wireguard-openbsd-c13b5084c20ad9f2af5cd5b89f989a25147985c7.zip |
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); |