8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43:03 +01:00

Postfix for #7065: Connection hangs after delivery of 2**32 - 1 packets

This commit is contained in:
AlexPeshkoff 2021-12-12 20:50:48 +03:00
parent eed81bac03
commit 98e1f406ca

View File

@ -163,9 +163,9 @@ const unsigned char* ChaCha::getSpecificData(CheckStatusWrapper* status, const c
RefPtr<IConfigEntry> entry(config->find(status, "CounterSize")); RefPtr<IConfigEntry> entry(config->find(status, "CounterSize"));
check(status); check(status);
if (entry.hasData()) if (entry.hasData())
*len = entry->getIntValue() == 32 ? 16 : 8; *len = entry->getIntValue() == 64 ? 8 : 16;
else else
*len = 8; *len = 16;
if (*len == 16) if (*len == 16)
{ {