From ff27484527344ec3c5d591bd9610e07f00ff31de 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 c9b6e8ed2..84d31e8ef 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;