1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-27 02:29:52 +03:00

src/Cedar/Virtual: coverity suspects null pointer dereference here

however, both Cancel() and ReleaseCancel() checks for NULL themselves,
so we can remove this check
This commit is contained in:
Ilya Shipitsin 2018-08-22 10:33:29 +05:00
parent 4b49540750
commit 5ecc80a14e

View File

@ -1995,12 +1995,9 @@ LABEL_RESTART:
}
Unlock(t->CancelLock);
if (c != NULL)
{
Cancel(c);
Cancel(c);
ReleaseCancel(c);
}
ReleaseCancel(c);
}
if (IsTubeConnected(ipc->Sock->RecvTube) == false || IsTubeConnected(ipc->Sock->SendTube) == false)