diff options
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index ccb2f28604..ed3522c7f5 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -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; |