From e0d0a425952e25fc270b1276545717d3f931caf8 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 19 May 2017 00:41:03 +1000 Subject: [PATCH] Don't disable proxies with scrambled json. --- src/generator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/generator.c b/src/generator.c index a853e2ee..9201a6fa 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1432,7 +1432,7 @@ static bool auth_stratum(ckpool_t *ckp, connsock_t *cs, proxy_instance_t *proxi) LOGNOTICE("Proxy %d:%d %s failed to get a json result in auth_stratum, got: %s", proxi->id, proxi->subid, proxi->url, buf); } - goto out; + goto out_noconn; } if (err_val && !json_is_null(err_val)) { @@ -1453,8 +1453,7 @@ static bool auth_stratum(ckpool_t *ckp, connsock_t *cs, proxy_instance_t *proxi) } LOGINFO("Proxy %d:%d %s auth success in auth_stratum", proxi->id, proxi->subid, proxi->url); out: - if (val) - json_decref(val); + json_decref(val); if (ret) { /* Now parse any cached responses so there are none in the * queue and they can be managed one at a time from now on. */