Skip to content

Commit

Permalink
Issue #4923 - Applying changes requested in PR
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Erdfelt <[email protected]>
  • Loading branch information
joakime committed Jun 1, 2020
1 parent b6d24c2 commit f9b75ff
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ public Object getAttribute(String name)
*/
private SslSessionData getSslSessionData()
{
SslSessionData sslSessionData = (SslSessionData)_session.getValue(SslSessionData.class.getName());
String key = SslSessionData.class.getName();
SslSessionData sslSessionData = (SslSessionData)_session.getValue(key);
if (sslSessionData == null)
{
String cipherSuite = _session.getCipherSuite();
Expand All @@ -381,7 +382,7 @@ private SslSessionData getSslSessionData()
String idStr = TypeUtil.toHexString(bytes);

sslSessionData = new SslSessionData(keySize, certs, idStr);
_session.putValue(SslSessionData.class.getName(), sslSessionData);
_session.putValue(key, sslSessionData);
}
return sslSessionData;
}
Expand Down

0 comments on commit f9b75ff

Please sign in to comment.