Browse Source

parse_remote_auth was holding a client reference for no good reason preventing remote clients from ever being dropped.

master
Con Kolivas 8 years ago
parent
commit
3c67dff032
  1. 1
      src/stratifier.c

1
src/stratifier.c

@ -6894,7 +6894,6 @@ static void parse_remote_auth(ckpool_t *ckp, sdata_t *sdata, json_t *val, stratu
client = __instance_by_id(sdata, client_id); client = __instance_by_id(sdata, client_id);
if (likely(!client)) if (likely(!client))
client = __stratum_add_instance(ckp, client_id, remote->address, remote->server); client = __stratum_add_instance(ckp, client_id, remote->address, remote->server);
__inc_instance_ref(client);
client->remote = true; client->remote = true;
json_strdup(&client->useragent, val, "useragent"); json_strdup(&client->useragent, val, "useragent");
json_strcpy(client->enonce1, val, "enonce1"); json_strcpy(client->enonce1, val, "enonce1");

Loading…
Cancel
Save