Skip to content

Commit

Permalink
To trace why sslEngine becames null
Browse files Browse the repository at this point in the history
  • Loading branch information
Heromyth committed Jan 8, 2021
1 parent ecd56fd commit d621acb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/hunt/net/secure/AbstractSecureSession.d
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ abstract class AbstractSecureSession : SecureSession {
}

protected SSLEngineResult unwrap() {
if(sslEngine is null)
throw new SecureNetException("The SSL Engine is invalid!");

SSLSession sslSession = sslEngine.getSession();
if(sslSession is null) {
throw new SecureNetException("The SSL Session is invalid now.");
Expand Down

0 comments on commit d621acb

Please sign in to comment.