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