mirror of
https://github.com/anope/anope.git
synced 2026-07-01 10:46:38 +02:00
Turn BinarySocket::Write() into a no-op when called with l == 0
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