Implemented crates (dropping and opening).

Also fixed a bug in vaildOutVarPacket().
This commit is contained in:
2020-08-28 18:25:03 +02:00
parent 67d899efe6
commit 4df812f996
4 changed files with 107 additions and 13 deletions

View File

@@ -82,7 +82,7 @@ inline bool validOutVarPacket(size_t base, int32_t npayloads, size_t plsize) {
size_t trailing = npayloads * plsize;
// does it fit in a packet?
if (base + trailing <= CN_PACKET_BUFFER_SIZE)
if (base + trailing > CN_PACKET_BUFFER_SIZE)
return false;
// everything is a-ok!