diff --git a/src/protocol.cpp b/src/protocol.cpp index c04afd5309..7a9b6dea58 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -52,9 +52,7 @@ bool CMessageHeader::IsValid() const return false; // Check the command string for errors - if (true) - { - for (const char* p1 = pchCommand; p1 < pchCommand + COMMAND_SIZE; p1++) + for (const char* p1 = pchCommand; p1 < pchCommand + COMMAND_SIZE; p1++) { if (*p1 == 0) { @@ -66,7 +64,6 @@ bool CMessageHeader::IsValid() const else if (*p1 < ' ' || *p1 > 0x7E) return false; } - } // Message size if (nMessageSize > MAX_SIZE)