mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
Make a failure in ktls_sendfile a syscall error
a failure in ktls_sendfile results in an error in ERR_LIB_SSL, but its really a syscall error, since ktls_sendfile just maps to a call to the sendfile syscall. Encode it as such Fixes #23722 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23723)
This commit is contained in:
parent
3059052992
commit
3dcd85139f
@ -2603,7 +2603,8 @@ ossl_ssize_t SSL_sendfile(SSL *s, int fd, off_t offset, size_t size, int flags)
|
||||
BIO_set_retry_write(sc->wbio);
|
||||
else
|
||||
#endif
|
||||
ERR_raise(ERR_LIB_SSL, SSL_R_UNINITIALIZED);
|
||||
ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
|
||||
"ktls_sendfile failure");
|
||||
return ret;
|
||||
}
|
||||
sc->rwstate = SSL_NOTHING;
|
||||
|
Loading…
Reference in New Issue
Block a user