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
dst_cq->last->offset == 0) {
/* ok, take the last chunk for our job */
if (dst_cq->last->file.length < 1 * 1024 * 1024) {
if (toRead + dst_cq->last->file.length < 1 * 1024 * 1024) {
dst_c = dst_cq->last;
if (dst_c->file.fd == -1) {
(2-2/2)