1
0
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:
Ilya Shipitsin 2018-08-31 00:50:53 +05:00
parent 3fcd8bc4a1
commit 2c2caa81bc

View File

@ -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;
}