1
0

Symmetry in MultiVersionProtocol to fix a crash (#5261)

+ Add HandleOutgoingData, which tests for m_Protocol before calling DataPrepared.
* Change std::function to bool + if/else to handle incoming data; it's almost certainly faster.
* Fixes #5260
This commit is contained in:
Tiger Wang
2021-07-10 21:04:49 +01:00
committed by GitHub
parent 68776c4d59
commit e9265b1d01
6 changed files with 67 additions and 37 deletions

View File

@@ -174,7 +174,7 @@ cProtocol_1_8_0::cProtocol_1_8_0(cClientHandle * a_Client, const AString & a_Ser
void cProtocol_1_8_0::DataReceived(cByteBuffer & a_Buffer, ContiguousByteBuffer && a_Data)
void cProtocol_1_8_0::DataReceived(cByteBuffer & a_Buffer, ContiguousByteBuffer & a_Data)
{
if (m_IsEncrypted)
{