summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-07 04:33:43 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-07 04:33:43 +0000
commit999febbac6ee73cb0c307fef1469818d47ff685c (patch)
tree68bec0802f9064aef948a7cdf775e0cd1fdd1324 /src/modules/extra
parent373db450cc1351e0271054ba620a9485b8896253 (diff)
Compile fix: openssl does not have an ISSL_CLOSING state, unlike gnutls
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11368 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp4
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;
}
}