mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 13:04:29 +00:00
We should be testing for id_val, not id in parse stratum response.
This commit is contained in:
parent
fdaabf59c6
commit
9e0e61509d
@ -4079,7 +4079,7 @@ static bool parse_stratum_response(char *s)
|
||||
id_val = json_object_get(val, "id");
|
||||
|
||||
if ((!res_val || !id_val) || (json_is_null(res_val) || json_is_null(id_val)) ||
|
||||
(err_val && !json_is_null(err_val) && !id)) {
|
||||
(err_val && !json_is_null(err_val) && !id_val)) {
|
||||
char *ss;
|
||||
|
||||
if (err_val)
|
||||
|
Loading…
x
Reference in New Issue
Block a user