Simplify NO_KTLS path in SSL_sendfile.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 23 Aug 2019 20:56:09 +0000 (13:56 -0700)
committerMatt Caswell <matt@openssl.org>
Thu, 31 Oct 2019 10:24:32 +0000 (10:24 +0000)
commit712c0942939c9aba2f2afadb9e4276b1a3df1345
tree32593e052742092e0187515474c30f6e845fa403
parent54f30cb57c78e5390d951e4a0c4d0bf2ce0d86a1
Simplify NO_KTLS path in SSL_sendfile.

Avoid tripping over errno values from previous system calls in the
thread and just hardcode the specific error.  BIO_get_ktls_send()
should never be true in the NO_KTLS path, so the #ifdef could be
moved even higher up to assume that error path in the NO_KTLS case
instead.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10045)
ssl/ssl_lib.c