diff options
author | Richard Levitte <levitte@openssl.org> | 2020-07-01 22:17:01 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-07-05 21:13:42 +0200 |
commit | fa7a807435edbcdcddf809398c59a60650315981 (patch) | |
tree | e444bd5a7a0abbaab0e07863987e2193ba9bb488 /ssl | |
parent | 17b7f8968481aa99c622080ac73879f42fb8c4ae (diff) | |
download | openssl-new-fa7a807435edbcdcddf809398c59a60650315981.tar.gz |
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)
Diffstat (limited to 'ssl')
-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 dd83f373b2..a252761ca4 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -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); |