Browse Source

Bugfix: Missing 'else' can result in null pointer dereference in race

Luke Dashjr 13 years ago
parent
commit
456bd96a4a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      miner.c

+ 1 - 0
miner.c

@@ -8028,6 +8028,7 @@ retry:
 			struct work *last_work = pool->last_work_copy;
 			if (!last_work)
 				{}
+			else
 			if (can_roll(last_work) && should_roll(last_work)) {
 				free_work(work);
 				work = make_clone(pool->last_work_copy);