Browse Source

Fix logic fail on partial writes with stratum send that was leading to corrupt message submissions.

Con Kolivas 13 years ago
parent
commit
a89a9adb9f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util.c

+ 1 - 1
util.c

@@ -890,7 +890,7 @@ static bool __stratum_send(struct pool *pool, char *s, ssize_t len)
 			return false;
 		}
 		ssent += sent;
-		len -= ssent;
+		len -= sent;
 	}
 
 	return true;