From b8af87adc18b1c452f0701e50aa05bf7b9f448a4 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 12 Aug 2018 16:17:56 +0500 Subject: [PATCH] src/Cedar/Interop_OpenVPN.c: remove logically dead code found by coverity --- src/Cedar/Interop_OpenVPN.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Cedar/Interop_OpenVPN.c b/src/Cedar/Interop_OpenVPN.c index 151bd159..9d42c466 100644 --- a/src/Cedar/Interop_OpenVPN.c +++ b/src/Cedar/Interop_OpenVPN.c @@ -1623,11 +1623,6 @@ OPENVPN_PACKET *OvsParsePacket(UCHAR *data, UINT size) ret = ZeroMalloc(sizeof(OPENVPN_PACKET)); - // OpCode + KeyID - if (size < 1) - { - goto LABEL_ERROR; - } uc = *((UCHAR *)data); data++; size--;