aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2014-04-04 11:22:54 +0000
committerVincent Richard <[email protected]>2014-04-04 11:22:54 +0000
commit4965674b35e915306c87c69722579b49af51a39a (patch)
treed38a53d2369b9d384ce408de5fe3aa012e4ecbbc
parentMerge branch 'master' of https://github.com/kisli/vmime (diff)
downloadvmime-4965674b35e915306c87c69722579b49af51a39a.tar.gz
vmime-4965674b35e915306c87c69722579b49af51a39a.zip
Do not check for SSL handle validity in handshake() as it is initialized a few lines later.
-rw-r--r--src/vmime/net/tls/openssl/TLSSocket_OpenSSL.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/vmime/net/tls/openssl/TLSSocket_OpenSSL.cpp b/src/vmime/net/tls/openssl/TLSSocket_OpenSSL.cpp
index a716f5b2..7ead54b9 100644
--- a/src/vmime/net/tls/openssl/TLSSocket_OpenSSL.cpp
+++ b/src/vmime/net/tls/openssl/TLSSocket_OpenSSL.cpp
@@ -347,9 +347,6 @@ size_t TLSSocket_OpenSSL::sendRawNonBlocking(const byte_t* buffer, const size_t
void TLSSocket_OpenSSL::handshake()
{
- if (!m_ssl)
- throw exceptions::socket_not_connected_exception();
-
shared_ptr <timeoutHandler> toHandler = m_wrapped->getTimeoutHandler();
if (toHandler)