mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +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)
|
||||
CSTR_PARSER_ERROR("Expected array, got %u", ctx->type);
|
||||
|
||||
if (ctx->value != 3)
|
||||
CSTR_PARSER_ERROR("Expected array of length exactly 3");
|
||||
if (ctx->value < 2)
|
||||
CSTR_PARSER_ERROR("Expected array of length at least 2");
|
||||
|
||||
stream->state = CSTR_EXPECT_ID;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user