1
0
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:
Ilya Shipitsin 2018-08-12 15:09:18 +05:00
parent cb55ba6e7f
commit 3da4a9c5e3

View File

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