fix(clang): null pointer dereference in parse_msgpack #25389

This commit is contained in:
nwounkn 2023-09-27 20:43:39 +05:00 committed by GitHub
parent 26d6f03023
commit bfdec5b0e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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