HomeFreeBSD

sendfile: if sendfile_getobj() fails jump to the function epilogue

Description

sendfile: if sendfile_getobj() fails jump to the function epilogue

The functional change here is that *sent would be zeroed. Note that some
portable applications, e.g. OpenSSL, use a wrapper around our sendfile(2)
to make it more Linux-like. These wrappers are usually written in a
manner that expects *sbytes to always be initialized regardless of the
error code returned.

Details

Provenance
glebiusAuthored on Dec 10 2025, 9:56 PM
Parents
rG45b3846ae5aa: linux: fix unr(9) leak on module unload
Branches
Unknown
Tags
Unknown