check for invalid data pointer in GetAuthSessionTicket()

This commit is contained in:
a 2023-12-22 09:05:19 +02:00 committed by otavepto
parent 23c435bfea
commit adeb14f364
2 changed files with 4 additions and 0 deletions

View File

@ -554,6 +554,8 @@ HAuthTicket Steam_GameServer::GetAuthSessionTicket( void *pTicket, int cbMaxTick
PRINT_DEBUG("Steam_GameServer::GetAuthSessionTicket\n");
std::lock_guard<std::recursive_mutex> lock(global_mutex);
if (!pTicket) return k_HAuthTicketInvalid;
return auth_manager->getTicket(pTicket, cbMaxTicket, pcbTicket);
}

View File

@ -311,6 +311,8 @@ HAuthTicket GetAuthSessionTicket( void *pTicket, int cbMaxTicket, uint32 *pcbTic
PRINT_DEBUG("Steam_User::GetAuthSessionTicket %i\n", cbMaxTicket);
std::lock_guard<std::recursive_mutex> lock(global_mutex);
if (!pTicket) return k_HAuthTicketInvalid;
return auth_manager->getTicket(pTicket, cbMaxTicket, pcbTicket);
}