1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

src/Cedar/Session.c: avoid unintentional integer overflow

found by coverity
This commit is contained in:
Ilya Shipitsin 2018-08-13 15:40:45 +05:00
parent ff1470cdce
commit eb4efe3f1b

View File

@ -1006,7 +1006,7 @@ void ClientAdditionalConnectChance(SESSION *s)
(s->NextConnectionTime <= now)) (s->NextConnectionTime <= now))
{ {
// Start the work to put an additional connection // 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); SessionAdditionalConnect(s);
} }
else else