mirror of
https://github.com/pocoproject/poco.git
synced 2026-01-12 00:04:54 +08:00
fix(NetSSL): SecureSocketImpl::currentSession() regression since 1.12.4 #4882
This commit is contained in:
@@ -633,6 +633,14 @@ void SecureSocketImpl::abort()
|
||||
|
||||
Session::Ptr SecureSocketImpl::currentSession()
|
||||
{
|
||||
if (!_pSession && _pSSL)
|
||||
{
|
||||
SSL_SESSION* pSession = SSL_get1_session(_pSSL);
|
||||
if (pSession)
|
||||
{
|
||||
_pSession = new Session(pSession);
|
||||
}
|
||||
}
|
||||
return _pSession;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user