mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 22:23:03 +00:00
TNetwork: Fix crash on wrong backend response
This commit is contained in:
@@ -312,6 +312,7 @@ void TNetwork::Authentication(SOCKET TCPSock) {
|
|||||||
{ "key", RequestString } });
|
{ "key", RequestString } });
|
||||||
Sentry.SetTransaction(Application::GetBackendUrlForAuth() + Target);
|
Sentry.SetTransaction(Application::GetBackendUrlForAuth() + Target);
|
||||||
Sentry.Log(SentryLevel::Info, "default", "backend returned 0 instead of json (" + std::to_string(ResponseCode) + ")");
|
Sentry.Log(SentryLevel::Info, "default", "backend returned 0 instead of json (" + std::to_string(ResponseCode) + ")");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AuthResponse["username"].IsString() && AuthResponse["roles"].IsString()
|
if (AuthResponse["username"].IsString() && AuthResponse["roles"].IsString()
|
||||||
|
|||||||
Reference in New Issue
Block a user