mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-18 16:55:55 +00:00
Fix crash when use Keepalived.
This commit is contained in:
parent
2650545916
commit
16f3338e42
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ bool stratum_handle_response(char *buf) {
|
||||||
|
|
||||||
json_t *status = json_object_get(res_val, "status");
|
json_t *status = json_object_get(res_val, "status");
|
||||||
|
|
||||||
if (!strcmp(json_string_value(status), "KEEPALIVED") ) {
|
if (status && !strcmp(json_string_value(status), "KEEPALIVED") ) {
|
||||||
applog(LOG_DEBUG, "Keepalived receveid");
|
applog(LOG_DEBUG, "Keepalived receveid");
|
||||||
json_decref(val);
|
json_decref(val);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue