remove DoNothing function (improves coverity reports)

This commit is contained in:
Ilya Shipitsin committed 2018-08-05 12:00:39 +05:00
1 parent 73371087ef
commit 1c0b961aa5
4 files changed
+3 -23

No files matched your search

+2 -7
View File
@@ -343,13 +343,8 @@ void OvsProceccRecvPacket(OPENVPN_SERVER *s, UDPPACKET *p, UINT protocol)
data += sizeof(UINT);
size -= sizeof(UINT);
if (size >= sizeof(ping_signature) &&
Cmp(data, ping_signature, sizeof(ping_signature)) == 0)
{
// Ignore since a ping packet has been received
DoNothing();
}
else
if (size < sizeof(ping_signature) ||
Cmp(data, ping_signature, sizeof(ping_signature)) != 0)
{
// Receive a packet!!
if (se->Ipc != NULL)