mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Bugfix: Duplicate stratum sessionid when copying work, to avoid double-free
This commit is contained in:
parent
16c7c983ae
commit
0847d45867
@ -2950,6 +2950,8 @@ void __copy_work(struct work *work, struct work *base_work)
|
||||
work->nonce2 = strdup(base_work->nonce2);
|
||||
if (base_work->ntime)
|
||||
work->ntime = strdup(base_work->ntime);
|
||||
if (base_work->sessionid)
|
||||
work->sessionid = strdup(base_work->sessionid);
|
||||
if (base_work->gbt_coinbase)
|
||||
work->gbt_coinbase = strdup(base_work->gbt_coinbase);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user