From 9019dcb2a9987645e936a3cdd20bd24f2346d3d0 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 29 Apr 2014 13:30:29 +1000 Subject: [PATCH] Fix deref on failed wb match --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index a84b8ccd..723d6909 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1016,8 +1016,8 @@ static json_t *parse_submit(stratum_instance_t *client, json_t *json_msg, goto out_unlock; } sdiff = submission_diff(client, wb, nonce2, ntime32, nonce, hash); -out_unlock: wb_id = wb->id; +out_unlock: ck_runlock(&workbase_lock); /* Accept the lower of new and old diffs until the next update */