From 595245cd451877007a39ad3dddda50ae95b05780 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 12 Aug 2018 16:07:13 +0500 Subject: [PATCH] src/Cedar/IPsec_PPP.c: remove logically dead code found by coverity --- src/Cedar/IPsec_PPP.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Cedar/IPsec_PPP.c b/src/Cedar/IPsec_PPP.c index e95e68cb..cec8736a 100644 --- a/src/Cedar/IPsec_PPP.c +++ b/src/Cedar/IPsec_PPP.c @@ -2370,20 +2370,10 @@ PPP_LCP *ParseLCP(USHORT protocol, void *data, UINT size) Zero(&o, sizeof(o)); - // Type - if (len < 1) - { - goto LABEL_ERROR; - } o.Type = buf[0]; buf++; len--; - // Length - if (len < 1) - { - goto LABEL_ERROR; - } o.DataSize = buf[0]; if (o.DataSize < 2) {