mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
stratum: extra check for the haters
This commit is contained in:
parent
0bf982da95
commit
4d74f06204
1 changed files with 4 additions and 0 deletions
|
@ -548,6 +548,10 @@ void *client_thread(void *p)
|
|||
|
||||
client->id_int = json_get_int(json, "id");
|
||||
client->id_str = json_get_string(json, "id");
|
||||
if (client->id_str && strlen(client->id_str) > 32) {
|
||||
clientlog(client, "bad id");
|
||||
break;
|
||||
}
|
||||
|
||||
const char *method = json_get_string(json, "method");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue