diff --git a/src/impl/tls.cpp b/src/impl/tls.cpp index 832c5c9a2..6f2e4a507 100644 --- a/src/impl/tls.cpp +++ b/src/impl/tls.cpp @@ -102,15 +102,12 @@ bool check(int success, const string &message) { } bool check(SSL *ssl, int ret, const string &message) { - if (ret == BIO_EOF) - return true; - unsigned long err = SSL_get_error(ssl, ret); if (err == SSL_ERROR_NONE || err == SSL_ERROR_WANT_READ || err == SSL_ERROR_WANT_WRITE) { return true; } if (err == SSL_ERROR_ZERO_RETURN) { - PLOG_DEBUG << "DTLS connection cleanly closed"; + PLOG_DEBUG << "OpenSSL connection cleanly closed"; return false; } string str = error_string(err);