mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
After finishing sending file data in sendfile(2), don't forget to send
the provided trailers. This has been broken since revision 1.240. Submitted by: Dan Nelson PR: kern/120948 "sounds ok to me" from: phk MFC after: 3 days
This commit is contained in:
parent
acebb585f7
commit
491869163b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176498
@ -2209,7 +2209,9 @@ kern_sendfile(struct thread *td, struct sendfile_args *uap,
|
||||
}
|
||||
|
||||
/* Quit outer loop on error or when we're done. */
|
||||
if (error || done)
|
||||
if (done)
|
||||
break;
|
||||
if (error)
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user