mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
src/Cedar/Interop_OpenVPN: resolve coverity "issue"
coverity thinks there might be null pointer dereference. we can safely remove a check here, because OvsFreePacket checks for null itself
This commit is contained in:
parent
3fcd8bc4a1
commit
2c2caa81bc
@ -1661,10 +1661,7 @@ OPENVPN_PACKET *OvsParsePacket(UCHAR *data, UINT size)
|
||||
|
||||
LABEL_ERROR:
|
||||
Debug("OvsParsePacket Error.\n");
|
||||
if (ret != NULL)
|
||||
{
|
||||
OvsFreePacket(ret);
|
||||
}
|
||||
OvsFreePacket(ret);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user