Fix a null pointer dereference.

It sometimes happened when user attaches to a channel.

No released version is affected.

Thanks to Zoddo for the report!
This commit is contained in:
Alexey Sokolov
2016-07-29 20:56:21 +01:00
parent f1ef8c79db
commit 847f2baf24
2 changed files with 73 additions and 1 deletions
+1 -1
View File
@@ -656,7 +656,7 @@ void CChan::SendBuffer(CClient* pClient, const CBuffer& Buffer) {
BufLine.ToMessage(*pUseClient, MCString::EmptyMap);
Message.SetChan(this);
Message.SetNetwork(m_pNetwork);
Message.SetClient(pClient);
Message.SetClient(pUseClient);
if (bBatch) {
Message.SetTag("batch", sBatchName);
}