mirror of
https://github.com/anope/anope.git
synced 2026-07-09 15:03:13 +02:00
Merge pull request #54 from attilamolnar/2.0+webcpanelfix
Don't create zero length DataBlocks in BinarySocket::Write()
This commit is contained in:
@@ -167,6 +167,8 @@ bool BinarySocket::ProcessWrite()
|
||||
|
||||
void BinarySocket::Write(const char *buffer, size_t l)
|
||||
{
|
||||
if (l == 0)
|
||||
return;
|
||||
this->write_buffer.push_back(new DataBlock(buffer, l));
|
||||
SocketEngine::Change(this, true, SF_WRITABLE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user