From df4a741c032f0ee0f19aac66cb3611b48c173486 Mon Sep 17 00:00:00 2001 From: BobTheBob9 Date: Wed, 7 Dec 2022 13:10:05 +0000 Subject: use client-provided uid for logging disconnect failure as it won't be copied to player if authentication fails --- NorthstarDLL/serverauthentication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NorthstarDLL') diff --git a/NorthstarDLL/serverauthentication.cpp b/NorthstarDLL/serverauthentication.cpp index 60d59418..73b714ab 100644 --- a/NorthstarDLL/serverauthentication.cpp +++ b/NorthstarDLL/serverauthentication.cpp @@ -320,7 +320,7 @@ bool,, (R2::CBaseClient* self, char* pName, void* pNetChannel, char bFakePlayer, if (pAuthenticationFailure) { - spdlog::info("{}'s (uid {}) connection was rejected: \"{}\"", pName, self->m_UID, pAuthenticationFailure); + spdlog::info("{}'s (uid {}) connection was rejected: \"{}\"", pName, iNextPlayerUid, pAuthenticationFailure); strncpy_s(pDisconnectReason, 256, pAuthenticationFailure, 255); return false; -- cgit v1.2.3