1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-27 02:29:52 +03:00

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

found by coverity
This commit is contained in:
Ilya Shipitsin 2018-08-12 15:07:34 +05:00
parent 89e3eb5ada
commit cb55ba6e7f

View File

@ -209,7 +209,7 @@ void SessionMain(SESSION *s)
s->LastCommTime = Tick64();
if (s->ServerMode == false)
{
s->NextConnectionTime = Tick64() + (UINT64)(s->ClientOption->AdditionalConnectionInterval * 1000);
s->NextConnectionTime = Tick64() + s->ClientOption->AdditionalConnectionInterval * (UINT64)1000;
}
s->NumConnectionsEstablished++;