diff options
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index f0a5f9908..b49d6b0b2 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -498,7 +498,7 @@ class ModuleSSLOpenSSL : public Module if (!Handshake(session)) { // Couldn't resume handshake. - errno = session->status == ISSL_CLOSING ? EIO : EAGAIN; + errno = session->status == ISSL_NONE ? EIO : EAGAIN; return -1; } } @@ -579,7 +579,7 @@ class ModuleSSLOpenSSL : public Module if (!Handshake(session)) { // Couldn't resume handshake. - errno = session->status == ISSL_CLOSING ? EIO : EAGAIN; + errno = session->status == ISSL_NONE ? EIO : EAGAIN; return -1; } } |