Project

General

Profile

Bug #2588 » connections.c.patch

Patch to prevent that a chunk overrun occurs - dirk4000, 2014-08-08 08:54

View differences:

connections_new.c 2017-08-28 01:52:45.000000000 +0200
1061 1061
				    dst_cq->last->offset == 0) {
1062 1062
					/* ok, take the last chunk for our job */
1063 1063

  
1064
			 		if (dst_cq->last->file.length < 1 * 1024 * 1024) {
1064
			 		if (toRead + dst_cq->last->file.length < 1 * 1024 * 1024) {
1065 1065
						dst_c = dst_cq->last;
1066 1066

  
1067 1067
						if (dst_c->file.fd == -1) {
(2-2/2)