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())