1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-27 02:29:52 +03:00

src/Cedar/IPsec_PPP.c: avoid unintentional integer overflow

found by coverity
This commit is contained in:
Ilya Shipitsin 2018-08-12 15:10:44 +05:00
parent 3da4a9c5e3
commit 35dc165651

View File

@ -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)