Skip to content

Commit

Permalink
Accept any non-false result for mining.authorize
Browse files Browse the repository at this point in the history
  • Loading branch information
pooler committed Jun 17, 2013
1 parent bb4b48b commit d43247b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d43247b

Please sign in to comment.