1
0
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:
Adam
2014-02-18 12:59:37 -05:00
3 changed files with 10 additions and 5 deletions
+2
View File
@@ -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);
}