Make sure to reset transflag back to zero upon succesfully using sendfile()

to transfer a file.

PR: 39362
Submitted by: TANAKA Hiroyuki <kattyo@abk.nu>
MFC after: 1 week
This commit is contained in:
Dan Moschuk 2002-07-03 00:12:00 +00:00
parent 53282320d1
commit 0849c18499
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99318

View File

@ -1845,6 +1845,7 @@ send_data(FILE *instr, FILE *outstr, off_t blksize, off_t filesize, int isreg)
}
}
transflag = 0;
reply(226, "Transfer complete.");
return (0);
}