From 451256f6cb723b69927562f30a026fc790b04114 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 18 Jan 2015 21:01:34 +1100 Subject: [PATCH] Only give unparseable auth message when failed message is not recognised --- src/stratifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index d3511277..aeba3757 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1967,7 +1967,8 @@ static int send_recv_auth(stratum_instance_t *client) LOGINFO("Got ckdb response: %s", buf); if (unlikely(sscanf(buf, "id.%*d.%s", response) < 1 || strlen(response) < 1 || !strchr(response, '='))) { - LOGWARNING("Got unparseable ckdb auth response: %s", buf); + if (!cmdmatch(response, "failed")) + LOGWARNING("Got unparseable ckdb auth response: %s", buf); goto out_fail; } cmd = response;