From 16f3338e426895ee9dc0dd1a50810bf55fd0c30d Mon Sep 17 00:00:00 2001 From: XMRig Date: Fri, 5 May 2017 10:48:56 +0300 Subject: [PATCH] Fix crash when use Keepalived. --- stratum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stratum.c b/stratum.c index 539d45c5..71d868ec 100644 --- a/stratum.c +++ b/stratum.c @@ -244,7 +244,7 @@ bool stratum_handle_response(char *buf) { 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"); json_decref(val); return true;