svn path=/trunk/boinc/; revision=1441
This commit is contained in:
David Anderson 2003-06-14 20:15:45 +00:00
parent 1591319e1b
commit 686a18854e
1 changed files with 1 additions and 0 deletions

View File

@ -150,6 +150,7 @@ int copy_socket_to_file(FILE* in, char* path, double offset, double nbytes) {
} }
m = fwrite(buf, 1, n, out); m = fwrite(buf, 1, n, out);
if (m != n) { if (m != n) {
fclose(out);
return return_error(ERR_TRANSIENT, "can't fwrite file"); return return_error(ERR_TRANSIENT, "can't fwrite file");
} }
bytes_left -= n; bytes_left -= n;