minor fixes relating to nonce overflows, size checks, etc.
This commit is contained in:
@@ -87,6 +87,10 @@ namespace ColumnLynx {
|
||||
|
||||
void incrementSendCount() {
|
||||
std::unique_lock lock(mMutex);
|
||||
if (mClientState->send_cnt == std::numeric_limits<uint64_t>::max()) {
|
||||
Utils::error("ClientSession: send counter overflow detected");
|
||||
return;
|
||||
}
|
||||
mClientState->send_cnt++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user