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

found by coverity
This commit is contained in:
Ilya Shipitsin committed 2018-08-12 15:09:18 +05:00
1 parent cb55ba6e7f
commit 3da4a9c5e3
1 file changed
+1 -1
+1 -1
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