Skip to content
Snippets Groups Projects
Commit 06afa093 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

review: error checking consistency

parent 2cb28f98
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,7 @@ static inline int wire_ctx_can_read(wire_ctx_t *ctx, size_t size)
{
assert(ctx);
if (ctx->error) {
if (ctx->error != KNOT_EOK) {
return ctx->error;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment