From 27abc0e84fd1820b4aed0e03e54437828671eded Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 14 Sep 2014 00:09:29 +1000 Subject: [PATCH] Make invalid workinfo id use the current workbase id --- src/stratifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stratifier.c b/src/stratifier.c index bda81e22..779c3d05 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1911,6 +1911,7 @@ static json_t *parse_submit(stratum_instance_t *client, json_t *json_msg, ck_rlock(&workbase_lock); HASH_FIND_I64(workbases, &id, wb); if (unlikely(!wb)) { + id = current_workbase->id; err = SE_INVALID_JOBID; json_set_string(json_msg, "reject-reason", SHARE_ERR(err)); strcpy(idstring, job_id);