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:
parent
89e3eb5ada
commit
cb55ba6e7f
@ -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++;
|
||||||
|
Loading…
Reference in New Issue
Block a user