Browse Source

Fix deref on failed wb match

master
Con Kolivas 11 years ago
parent
commit
9019dcb2a9
  1. 2
      src/stratifier.c

2
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 */

Loading…
Cancel
Save