From a36f0dbf02e0a1de3b3068af606692c5e687d138 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Fri, 3 Apr 2020 19:46:18 +0200 Subject: [PATCH] Fixed log --- license/server/LicenseServerHandler.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/license/server/LicenseServerHandler.cpp b/license/server/LicenseServerHandler.cpp index e18ecf5..8d6c167 100644 --- a/license/server/LicenseServerHandler.cpp +++ b/license/server/LicenseServerHandler.cpp @@ -198,13 +198,15 @@ bool LicenseServer::handleServerValidation(shared_ptr &client, } } this->manager->logRequest(remote_license->key(), client->unique_identifier, client->address(), pkt.info().version(), response.valid()); - } else if(pkt.has_memory_valid() && !pkt.memory_valid()) { + } else { + /* shall never happen, by default each server has the default license */ + response.set_valid(true); + } + if(pkt.has_memory_valid() && !pkt.memory_valid()) { response.set_invalid_reason("server memory seems to be invalid"); response.set_valid(false); logError(LOG_GENERAL, "Server {} has patched license memory!", client->address()); - } else { - response.set_valid(true); - } + } if(client->protocol.version == 2) { if(response.valid())