We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 549e512 + 6c54ae7 commit 40631c0Copy full SHA for 40631c0
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