From 14b965c67a30ca2f7c7af91cc6d712318e7c396f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 17 Jun 2014 17:27:01 +1000 Subject: [PATCH] Change authentication response check from added to ok --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 58a60e2e..6a5264d6 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1185,7 +1185,7 @@ static bool send_recv_auth(stratum_instance_t *client) LOGINFO("User %s Worker %s got auth response: %s suid: %s", client->user_instance->username, client->workername, response, secondaryuserid); - if (!strcmp(response, "added") && secondaryuserid) { + if (!strcmp(response, "ok") && secondaryuserid) { client->secondaryuserid = strdup(secondaryuserid); ret = true; }