mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
This fixes sf.net bug 1765573 which is a NULL pointer dereference.
Patch was written/tested by x-x and I did the indentation. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@817 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -69,6 +69,11 @@ void CClient::ReadLine(const CString& sData) {
|
||||
return; // Don't forward this msg. ZNC will handle nick changes until auth is complete
|
||||
}
|
||||
|
||||
if (!m_pIRCSock) {
|
||||
// No need to check against IRC nick or to forward it
|
||||
return;
|
||||
}
|
||||
|
||||
if ((m_pUser) && (sNick.CaseCmp(m_pUser->GetNick()) == 0)) {
|
||||
m_uKeepNickCounter++;
|
||||
// If the user is changing his nick to the conifg nick, set keepnick to the config value
|
||||
|
||||
Reference in New Issue
Block a user