mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Handle non-object in 'json' RPC method
This commit is contained in:
@@ -407,6 +407,9 @@ private:
|
||||
|
||||
if (reader.parse (jvParams[1u].asString (), jvRequest))
|
||||
{
|
||||
if (!jvRequest.isObject ())
|
||||
return rpcError (rpcINVALID_PARAMS);
|
||||
|
||||
jvRequest["method"] = jvParams[0u];
|
||||
|
||||
return jvRequest;
|
||||
|
||||
Reference in New Issue
Block a user