From 1b47398e3847d491e2ebb64670a4ae2d27ce6f12 Mon Sep 17 00:00:00 2001 From: Ryan Stecker Date: Wed, 24 Dec 2014 17:29:38 -0600 Subject: [PATCH] Prevent null auth string comparisons. --- core/PlayerManager.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/PlayerManager.cpp b/core/PlayerManager.cpp index c9b6e8ed..84d31e8e 100644 --- a/core/PlayerManager.cpp +++ b/core/PlayerManager.cpp @@ -2003,6 +2003,13 @@ void CPlayer::UpdateAuthIds() #else authstr = engine->GetPlayerNetworkIDString(m_pEdict); #endif + + if (!authstr) + { + // engine doesn't have the client's auth string just yet, we can't do anything + return; + } + if (m_AuthID.compare(authstr) == 0) { return;