From 3c67dff0323a434ae5ec44e48293d54fc2687c00 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 7 Jan 2017 01:00:27 +1100 Subject: [PATCH] parse_remote_auth was holding a client reference for no good reason preventing remote clients from ever being dropped. --- src/stratifier.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 12cc62f2..997e8fc3 100644 --- a/src/stratifier.c +++ b/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); if (likely(!client)) client = __stratum_add_instance(ckp, client_id, remote->address, remote->server); - __inc_instance_ref(client); client->remote = true; json_strdup(&client->useragent, val, "useragent"); json_strcpy(client->enonce1, val, "enonce1");