Validate RPC buffer

This commit is contained in:
robert committed 2026-11-12 17:46:04 +02:00
1 parent 5f1aaa21eb
commit 52ebac833f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -15353,7 +15353,7 @@ void mg_rpc_process(struct mg_rpc_req *r) {
mg_rpc_call(r, mg_str("")); // JSON response! call "" method handler
} else {
mg_rpc_err(r, -32700, "%m", mg_print_esc, (int) r->frame.len,
r->frame.buf); // Invalid
r->frame.len ? r->frame.buf : ""); // Invalid
}
}