From 2980ff40329c99cc1309f86b165d93097b0dd58c 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 84f9a9a7..43512fdc 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2005,7 +2005,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;