mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-20 15:27:00 +00:00
TNetwork: Fix crash on wrong backend response
This commit is contained in:
1 parent
31e9004011
commit
3fb227e468
1 file changed
+1
@@ -312,6 +312,7 @@ void TNetwork::Authentication(SOCKET TCPSock) {
|
||||
{ "key", RequestString } });
|
||||
Sentry.SetTransaction(Application::GetBackendUrlForAuth() + Target);
|
||||
Sentry.Log(SentryLevel::Info, "default", "backend returned 0 instead of json (" + std::to_string(ResponseCode) + ")");
|
||||
return;
|
||||
}
|
||||
|
||||
if (AuthResponse["username"].IsString() && AuthResponse["roles"].IsString()
|
||||
|
||||
Reference in new issue
Block a user