--- a/src/server/safs/service.c Sat Jan 13 16:44:05 2018 +0100 +++ b/src/server/safs/service.c Sat Jan 13 18:48:19 2018 +0100 @@ -632,11 +632,12 @@ length = s.st_size; } + int ret = REQ_NOACTION; if(single_range) { // send response header http_start_response(sn, rq); // send content - int ret = send_range_aio(sn, rq, fd, offset, length, NULL, 0); + ret = send_range_aio(sn, rq, fd, offset, length, NULL, 0); if(ret == REQ_PROCESSING) { return ret; } @@ -646,16 +647,15 @@ } //*/ } else { - if(send_multi_range(sn, rq, fd, s.st_size, range)) { - // TODO: error - } + ret = send_multi_range(sn, rq, fd, s.st_size, range); + // TODO: error } // cleanup vfs_close(fd); free_range(sn, range); - return REQ_PROCEED; + return ret; }