mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
src/Cedar/IPsec_PPP.c: remove logically dead code
found by coverity
This commit is contained in:
parent
ad41d54b29
commit
595245cd45
@ -2370,20 +2370,10 @@ PPP_LCP *ParseLCP(USHORT protocol, void *data, UINT size)
|
|||||||
|
|
||||||
Zero(&o, sizeof(o));
|
Zero(&o, sizeof(o));
|
||||||
|
|
||||||
// Type
|
|
||||||
if (len < 1)
|
|
||||||
{
|
|
||||||
goto LABEL_ERROR;
|
|
||||||
}
|
|
||||||
o.Type = buf[0];
|
o.Type = buf[0];
|
||||||
buf++;
|
buf++;
|
||||||
len--;
|
len--;
|
||||||
|
|
||||||
// Length
|
|
||||||
if (len < 1)
|
|
||||||
{
|
|
||||||
goto LABEL_ERROR;
|
|
||||||
}
|
|
||||||
o.DataSize = buf[0];
|
o.DataSize = buf[0];
|
||||||
if (o.DataSize < 2)
|
if (o.DataSize < 2)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user