diff --git a/src/ckpool.c b/src/ckpool.c index df6b8f91..47142152 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -335,7 +335,7 @@ char *_json_ckdb_call(const ckpool_t *ckp, const char *idmsg, json_t *val, LOGWARNING("Json dump failed in json_ckdb_call from %s %s:%d", file, func, line); goto out; } - ASPRINTF(&msg, "is.%s.json=%s", idmsg, dump); + ASPRINTF(&msg, "id.%s.json=%s", idmsg, dump); free(dump); LOGDEBUG("Sending ckdb: %s", msg); buf = _send_recv_ckdb(ckp, msg, file, func, line); diff --git a/src/stratifier.c b/src/stratifier.c index 0190d0ab..9dcd7cc4 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1211,7 +1211,7 @@ static bool send_recv_auth(stratum_instance_t *client) if (likely(buf)) { char *secondaryuserid, *response = alloca(128); - sscanf(buf, "is.%*d.%s", response); + sscanf(buf, "id.%*d.%s", response); secondaryuserid = response; strsep(&secondaryuserid, "."); LOGWARNING("Got auth response: %s response: %s suid: %s", buf,