stratum: extra check for the haters

This commit is contained in:
Tanguy Pruvot 2018-02-07 11:55:09 +01:00
parent 0bf982da95
commit 4d74f06204

View file

@ -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");