From 4d69bd24234bdef42e7f0eda7c1bf977386478b3 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 7 Oct 2014 15:56:04 +1100 Subject: [PATCH] Wrong test on result_val --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 286e3b3c..e69f9bf2 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2726,7 +2726,7 @@ static void sauth_process(ckpool_t *ckp, json_params_t *jp) json_object_set_nocheck(json_msg, "id", jp->id_val); stratum_add_send(json_msg, client_id); - if (!json_is_string(result_val) || !client->suggest_diff) + if (!json_is_true(result_val) || !client->suggest_diff) goto out; /* Update the client now if they have set a valid mindiff different