From d43247bebadff68bea41d41bcbb1521b23ac39ab Mon Sep 17 00:00:00 2001 From: pooler Date: Mon, 17 Jun 2013 11:13:28 +0200 Subject: [PATCH] Accept any non-false result for mining.authorize --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 2ab298d..151d2d8 100644 --- a/util.c +++ b/util.c @@ -962,7 +962,7 @@ bool stratum_authorize(struct stratum_ctx *sctx, const char *user, const char *p res_val = json_object_get(val, "result"); err_val = json_object_get(val, "error"); - if (!res_val || !json_is_true(res_val) || + if (!res_val || json_is_false(res_val) || (err_val && !json_is_null(err_val))) { applog(LOG_ERR, "Stratum authentication failed"); goto out;