We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 549e512 commit 6c54ae7Copy full SHA for 6c54ae7
src/NetMQ/Core/Transports/V1Decoder.cs
@@ -124,7 +124,7 @@ private DecodeResult EightByteSizeReady()
124
long payloadLength = m_tmpbuf.GetLong(Endian, 0);
125
126
// There has to be at least one byte (the flags) in the message).
127
- if (payloadLength == 0)
+ if (payloadLength <= 0)
128
return DecodeResult.Error;
129
130
// Message size must not exceed the maximum allowed size.
0 commit comments