fix(clang): null pointer dereference in parse_msgpack

This commit is contained in:
nwounkn
2023-09-27 20:43:39 +05:00
committed by zeertzjq
parent e298c01cfb
commit f5b43bf1f3

View File

@@ -337,6 +337,7 @@ static void parse_msgpack(Channel *channel)
"id. Ensure the client is properly synchronized",
channel->id);
chan_close_with_error(channel, buf, LOGLVL_ERR);
return;
}
frame->returned = true;
frame->errored = (p->error.type != kObjectTypeNil);