mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 09:29:52 +03:00
src/Cedar/Hub.c: avoid unintentional integer overflow
found by coverity
This commit is contained in:
parent
cb55ba6e7f
commit
3da4a9c5e3
@ -6098,7 +6098,7 @@ void IntoTrafficLimiter(TRAFFIC_LIMITER *tr, PKT *p)
|
||||
}
|
||||
|
||||
// Value increase
|
||||
tr->Value += (UINT64)(p->PacketSize * 8);
|
||||
tr->Value += p->PacketSize * (UINT64)8;
|
||||
}
|
||||
|
||||
// The bandwidth reduction by traffic limiter
|
||||
|
Loading…
Reference in New Issue
Block a user