mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-06 07:44:57 +03:00
Fix bugs reported by Coverity Scan.
This commit is contained in:
@ -3717,9 +3717,12 @@ bool HubPaPutPacket(SESSION *s, void *data, UINT size)
|
||||
CancelList(s->CancelList);
|
||||
|
||||
// Yield
|
||||
if (hub->Option != NULL && hub->Option->YieldAfterStorePacket)
|
||||
if (hub != NULL)
|
||||
{
|
||||
YieldCpu();
|
||||
if (hub->Option != NULL && hub->Option->YieldAfterStorePacket)
|
||||
{
|
||||
YieldCpu();
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user