mirror of
https://github.com/openssl/openssl.git
synced 2024-12-03 05:41:46 +08:00
SSL: fix misuse of ERR_LIB_SYS
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/12343)
This commit is contained in:
parent
17b7f89684
commit
fa7a807435
@ -2072,7 +2072,8 @@ ossl_ssize_t SSL_sendfile(SSL *s, int fd, off_t offset, size_t size, int flags)
|
||||
}
|
||||
|
||||
#ifdef OPENSSL_NO_KTLS
|
||||
ERR_raise_data(ERR_LIB_SYS, ERR_R_INTERNAL_ERROR, "calling sendfile()");
|
||||
ERR_raise_data(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR,
|
||||
"can't call ktls_sendfile(), ktls disabled");
|
||||
return -1;
|
||||
#else
|
||||
ret = ktls_sendfile(SSL_get_wfd(s), fd, offset, size, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user