From cb55ba6e7f3618696c2e3064247b84292461b538 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 12 Aug 2018 15:07:34 +0500 Subject: [PATCH] src/Cedar/Session.c: avoid unintentional integer overflow found by coverity --- src/Cedar/Session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/Session.c b/src/Cedar/Session.c index 4dc88553..451839a9 100644 --- a/src/Cedar/Session.c +++ b/src/Cedar/Session.c @@ -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++;