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-12 15:07:34 +05:00
parent 89e3eb5ada
commit cb55ba6e7f

View File

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