mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
src/Cedar/Session.c: avoid unintentional integer overflow
found by coverity
This commit is contained in:
parent
ff1470cdce
commit
eb4efe3f1b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user