Update Csocket to f3267e4cb21ba5b83c15da75f52706253817ddab

* Fix SSL crash. Thanks to kerio for reporting it.
This commit is contained in:
Alexey Sokolov
2014-12-22 15:08:50 +00:00
parent 0ff3e34985
commit 79d33925c4
+3
View File
@@ -1055,6 +1055,9 @@ void Csock::Copy( const Csock & cCopy )
if( m_ssl )
{
SSL_set_ex_data( m_ssl, GetCsockSSLIdx(), this );
#if defined( SSL_CTX_set_tlsext_servername_callback )
SSL_CTX_set_tlsext_servername_arg( m_ssl_ctx, this );
#endif /* SSL_CTX_set_tlsext_servername_callback */
}
#endif /* HAVE_LIBSSL */