mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-26 01:59:53 +03:00
remove dead code found by Coverity
2575 // Address at_least: At condition size < 1U, the value of size must be at least 1. cannot_single: At condition size < 1U, the value of size cannot be equal to 0. dead_error_condition: The condition size < 1U cannot be true. 2576 if (size < 1) 2577 { CID 287533 (#1 of 1): Logically dead code (DEADCODE)dead_error_line: Execution cannot reach this statement: goto LABEL_ERROR;. 2578 goto LABEL_ERROR; 2579 }
This commit is contained in:
parent
2715d80e18
commit
5c346ef96e
@ -2573,10 +2573,6 @@ PPP_PACKET *ParsePPPPacket(void *data, UINT size)
|
||||
buf = (UCHAR *)data;
|
||||
|
||||
// Address
|
||||
if (size < 1)
|
||||
{
|
||||
goto LABEL_ERROR;
|
||||
}
|
||||
if (buf[0] != 0xff)
|
||||
{
|
||||
goto LABEL_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user