diff --git a/src/NetMQ/Core/Transports/V1Decoder.cs b/src/NetMQ/Core/Transports/V1Decoder.cs index daa1222..6b3d2ca 100644 --- a/src/NetMQ/Core/Transports/V1Decoder.cs +++ b/src/NetMQ/Core/Transports/V1Decoder.cs @@ -144,7 +144,7 @@ private bool EightByteSizeReady() long payloadLength = m_tmpbuf.GetLong(Endian, 0); // There has to be at least one byte (the flags) in the message). - if (payloadLength == 0) + if (payloadLength <= 0) { DecodingError(); return false;