mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-03-11 17:08:46 +00:00
fixup! fixup! Lib: CBOR message streams and channels
This commit is contained in:
parent
36a206d1d2
commit
bd9f68d739
@ -249,8 +249,8 @@ cbor_stream_rx(sock *s, uint sz)
|
|||||||
if (ctx->type != 4)
|
if (ctx->type != 4)
|
||||||
CSTR_PARSER_ERROR("Expected array, got %u", ctx->type);
|
CSTR_PARSER_ERROR("Expected array, got %u", ctx->type);
|
||||||
|
|
||||||
if (ctx->value != 3)
|
if (ctx->value < 2)
|
||||||
CSTR_PARSER_ERROR("Expected array of length exactly 3");
|
CSTR_PARSER_ERROR("Expected array of length at least 2");
|
||||||
|
|
||||||
stream->state = CSTR_EXPECT_ID;
|
stream->state = CSTR_EXPECT_ID;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user