diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/IO/tls_openssl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/IO/tls_openssl.c b/src/IO/tls_openssl.c index 3e53800d..10a68dbd 100644 --- a/src/IO/tls_openssl.c +++ b/src/IO/tls_openssl.c @@ -1272,6 +1272,12 @@ void a_Tls_openssl_connect(int fd, const DilloUrl *url) */ static int Tls_handle_error(Conn_t *conn, int ret, const char *where) { + /* Success */ + if (ret > 0) { + errno = 0; + return ret; + } + SSL *ssl = conn->ssl; int err1_ret = SSL_get_error(ssl, ret); if (err1_ret == SSL_ERROR_NONE) { |