mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
src/Cedar/IPsec_PPP.c: avoid unintentional integer overflow
found by coverity
This commit is contained in:
parent
3da4a9c5e3
commit
35dc165651
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user