1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-26 19:39:53 +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); 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) if (IsTubeConnected(ipc->Sock->RecvTube) == false || IsTubeConnected(ipc->Sock->SendTube) == false)