From 35dc165651b2e0847b1d9fffcb02e38d1485e8be Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 12 Aug 2018 15:10:44 +0500 Subject: [PATCH] src/Cedar/IPsec_PPP.c: avoid unintentional integer overflow found by coverity --- src/Cedar/IPsec_PPP.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/IPsec_PPP.c b/src/Cedar/IPsec_PPP.c index a17ba489..e95e68cb 100644 --- a/src/Cedar/IPsec_PPP.c +++ b/src/Cedar/IPsec_PPP.c @@ -1318,7 +1318,7 @@ PPP_PACKET *PPPProcessRequestPacket(PPP_SESSION *p, PPP_PACKET *req) t = 1; } - p->DhcpRenewInterval = (UINT64)(t * 1000); + p->DhcpRenewInterval = t * (UINT64)1000; p->DhcpNextRenewTime = Tick64() + p->DhcpRenewInterval; if (true)