aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--src/IO/tls_openssl.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9026442f..f073f389 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,8 @@ dillo-3.1.1 [not released yet]
+- Disable TLSv1.3 in Mbed TLS 3.6.0 until it is supported.
- Add workaround for Cygwin and OpenSSL with --disable-threaded-dns.
- Fix distcheck when HTML tests are enabled.
+ - Fix an OpenSSL bug when the server closes the connection prematurely and
+ SSL_get_error() returns SSL_ERROR_ZERO_RETURN.
Patches: Rodrigo Arias Mallo <rodarima@gmail.com>
+- Add HTML tests to the distributed tarball.
Patches: Matt Jolly
diff --git a/src/IO/tls_openssl.c b/src/IO/tls_openssl.c
index 90be78b7..3e53800d 100644
--- a/src/IO/tls_openssl.c
+++ b/src/IO/tls_openssl.c
@@ -1277,6 +1277,9 @@ static int Tls_handle_error(Conn_t *conn, int ret, const char *where)
if (err1_ret == SSL_ERROR_NONE) {
errno = 0;
return ret;
+ } else if (err1_ret == SSL_ERROR_ZERO_RETURN) {
+ errno = 0;
+ return 0;
} else if (err1_ret == SSL_ERROR_WANT_READ || err1_ret == SSL_ERROR_WANT_WRITE) {
errno = EAGAIN;
return -1;