mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-06 07:44:57 +03:00
src/Cedar/Session.c: avoid unintentional integer overflow
found by coverity
This commit is contained in:
@ -1006,7 +1006,7 @@ void ClientAdditionalConnectChance(SESSION *s)
|
||||
(s->NextConnectionTime <= now))
|
||||
{
|
||||
// Start the work to put an additional connection
|
||||
s->NextConnectionTime = now + (UINT64)(s->ClientOption->AdditionalConnectionInterval * 1000);
|
||||
s->NextConnectionTime = now + s->ClientOption->AdditionalConnectionInterval * (UINT64)1000U;
|
||||
SessionAdditionalConnect(s);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user