Browse Source

Relax the array size check in shares to at least large enough

master
Con Kolivas 8 years ago
parent
commit
ded126d599
  1. 2
      src/stratifier.c

2
src/stratifier.c

@ -5506,7 +5506,7 @@ static json_t *parse_submit(stratum_instance_t *client, json_t *json_msg,
*err_val = JSON_ERR(err); *err_val = JSON_ERR(err);
goto out; goto out;
} }
if (unlikely(json_array_size(params_val) != 5)) { if (unlikely(json_array_size(params_val) < 5)) {
err = SE_INVALID_SIZE; err = SE_INVALID_SIZE;
*err_val = JSON_ERR(err); *err_val = JSON_ERR(err);
goto out; goto out;

Loading…
Cancel
Save