From c173e8fad8b0c4f5711ad806c6de70349274941c Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Sun, 5 Mar 2023 15:42:29 -0500 Subject: Set default server auth failure reason Not all error paths set it. --- NorthstarDLL/masterserver/masterserver.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NorthstarDLL/masterserver') diff --git a/NorthstarDLL/masterserver/masterserver.cpp b/NorthstarDLL/masterserver/masterserver.cpp index 76106169..015670e7 100644 --- a/NorthstarDLL/masterserver/masterserver.cpp +++ b/NorthstarDLL/masterserver/masterserver.cpp @@ -450,6 +450,7 @@ void MasterServerManager::AuthenticateWithOwnServer(const char* uid, const char* m_bAuthenticatingWithGameServer = true; m_bScriptAuthenticatingWithGameServer = true; m_bSuccessfullyAuthenticatedWithGameServer = false; + m_sAuthFailureReason = "Authentication Failed"; std::string uidStr(uid); std::string tokenStr(playerToken); @@ -584,6 +585,7 @@ void MasterServerManager::AuthenticateWithServer(const char* uid, const char* pl m_bAuthenticatingWithGameServer = true; m_bScriptAuthenticatingWithGameServer = true; m_bSuccessfullyAuthenticatedWithGameServer = false; + m_sAuthFailureReason = "Authentication Failed"; std::string uidStr(uid); std::string tokenStr(playerToken); -- cgit v1.2.3