From 4965674b35e915306c87c69722579b49af51a39a Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Fri, 4 Apr 2014 13:22:54 +0200 Subject: [PATCH] Do not check for SSL handle validity in handshake() as it is initialized a few lines later. --- src/vmime/net/tls/openssl/TLSSocket_OpenSSL.cpp | 3 --- 1 file changed, 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 toHandler = m_wrapped->getTimeoutHandler(); if (toHandler)