From eb4efe3f1b833b44fdddc507ded5558838158b8d Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Mon, 13 Aug 2018 15:40:45 +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 451839a9..5bd5fa19 100644 --- a/src/Cedar/Session.c +++ b/src/Cedar/Session.c @@ -1006,7 +1006,7 @@ void ClientAdditionalConnectChance(SESSION *s) (s->NextConnectionTime <= now)) { // Start the work to put an additional connection - s->NextConnectionTime = now + (UINT64)(s->ClientOption->AdditionalConnectionInterval * 1000); + s->NextConnectionTime = now + s->ClientOption->AdditionalConnectionInterval * (UINT64)1000U; SessionAdditionalConnect(s); } else