From f3125a99dd75dd444db9040742b89bfb57998305 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 18 Oct 2024 02:47:32 +0000 Subject: [PATCH] Code format - (Clang-format) --- src/server/network/protocol/protocol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/network/protocol/protocol.cpp b/src/server/network/protocol/protocol.cpp index fa5b88780af..0e19eed14f4 100644 --- a/src/server/network/protocol/protocol.cpp +++ b/src/server/network/protocol/protocol.cpp @@ -197,7 +197,7 @@ void Protocol::XTEA_encrypt(OutputMessage &outputMessage) const { XTEA_transform(buffer, messageLength, true); } -bool Protocol::XTEA_decrypt(NetworkMessage& msg) const { +bool Protocol::XTEA_decrypt(NetworkMessage &msg) const { uint16_t msgLength = msg.getLength() - (checksumMethod == CHECKSUM_METHOD_NONE ? 2 : 6); if ((msgLength % 8) != 0) { return false;