mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
stratum: check if blocknotify string param is set
This commit is contained in:
parent
b0a0e53293
commit
ba20dc3ffa
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ bool client_authorize(YAAMP_CLIENT *client, json_value *json_params)
|
|||
bool client_update_block(YAAMP_CLIENT *client, json_value *json_params)
|
||||
{
|
||||
// password, id, block hash
|
||||
if(json_params->u.array.length < 3)
|
||||
if(json_params->u.array.length < 3 || !json_params->u.array.values[0]->u.string.ptr)
|
||||
{
|
||||
clientlog(client, "update block, bad params");
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue