Commit 1403f4dd08e61da69da848ff07e5373d39e2713b

Con Kolivas 2013-08-30T21:40:10

Only process nonces in bflsc is the breakdown function succeeds.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/driver-bflsc.c b/driver-bflsc.c
index bf3acb1..d819cdd 100644
--- a/driver-bflsc.c
+++ b/driver-bflsc.c
@@ -1364,8 +1364,12 @@ static int process_results(struct cgpu_info *bflsc, int dev, char *buf, int *non
 	freebreakdown(&count, &firstname, &fields);
 
 	for (i = 0; i < que; i++) {
-		breakdown(NOCOLON, items[i + QUE_RES_LINES_MIN - 1], &count, &firstname, &fields, &lf);
-		process_nonces(bflsc, dev, &(xlink[0]), items[i], count, fields, nonces);
+		res = breakdown(NOCOLON, items[i + QUE_RES_LINES_MIN - 1], &count, &firstname, &fields, &lf);
+		if (likely(res))
+			process_nonces(bflsc, dev, &(xlink[0]), items[i], count, fields, nonces);
+		else
+			applog(LOG_ERR, "%s%i:%s failed to process nonce %s",
+				bflsc->drv->name, bflsc->device_id, xlink, items[i]);
 		freebreakdown(&count, &firstname, &fields);
 		sc_info->not_first_work = true;
 	}