RemoveUser Error Logs

05/19/2020 20:13 Tweeney#1
Hello EPVP

I am always receiving these errors

Code:
RemoveUser(): *pUser->m_pKey is '
Code:
RemoveUser(): dpid not found
Upon searching the error on the source.

I found this but I don't understand why I got the error.

Code:
BOOL CUserMng::RemoveUser( DPID dpid )
{
	CMclAutoLock Lock( m_AddRemoveLock );
#ifdef __STL_0402
	C2User::iterator i = m_dpid2User.find( dpid );
	if( i != m_dpid2User.end() )
	{
		CUser* pUser	= i->second;
		m_dpid2User.erase( i );
#else	// __STL_0402
	CUser* pUser;
	if( m_dpid2User.Lookup( dpid, pUser ) )
	{
		m_dpid2User.RemoveKey( dpid );
#endif	// __STL_0402
		m_ac2User.erase( pUser->m_pKey );

		if( !pUser->m_bIllegal )
		{
			if( *pUser->m_pKey != '\0' )
			{
				g_dpDBClient.SendLeave( pUser->m_pKey, pUser->m_idPlayer, timeGetTime() - pUser->m_dwTime );
			}
			else
				WriteLog( "RemoveUser(): *pUser->m_pKey is '\0'" );

			if( pUser->m_idPlayer > 0 )
				g_dpCoreClient.SendLeave( pUser->m_idPlayer );
		}
		else
		{
			WriteLog( "RemoveUser(): Illegal" );
		}
		g_dpLoginSrvr.CacheOut( pUser->m_nIndexOfCache );

		SAFE_DELETE( pUser );
		m_uCount--;
		return TRUE;
	}
	WriteLog( "RemoveUser(): dpid not found" );
	return FALSE;
}
Sharing information on why the error occurs will much be appreciated.

PS: If you are here to flame. please stay away. :handsdown: ( I know you are pro. and I'm just still learning )

Thanks in advance
05/20/2020 06:43 pbben15#2
Code:
RemoveUser(): *pUser->m_pKey is '
Quote:
Originally Posted by xTwiLightx View Post
This Error results when your (LoginServer?) Port is scanned by portscanners - the Server trys to start an instance, but there is no input, so it results in this error.
Quote:
Originally Posted by raventh1984 View Post
Ok thank you for that wonderfull explination.

can i prevent that port scanners are scanning that port?
Quote:
Originally Posted by xTwiLightx View Post
You cant protect against portscanners, as long as your port is open. ;)
I hope that helps.
05/21/2020 16:21 Flogolo#3
Quote:
Originally Posted by Tweeney View Post
search function :rtfm::rtfm::rtfm::rtfm: