diff --git a/src/share/classes/sun/security/ssl/ClientHandshaker.java b/src/share/classes/sun/security/ssl/ClientHandshaker.java index 4b887cbe26153d6b8fc5772454ad259cbaad11c8..90691f7e5c3c291fbbb6b68cf82ee76ffb6dbfa2 100644 --- a/src/share/classes/sun/security/ssl/ClientHandshaker.java +++ b/src/share/classes/sun/security/ssl/ClientHandshaker.java @@ -620,6 +620,9 @@ final class ClientHandshaker extends Handshaker { } } else { // we wanted to resume, but the server refused + // + // Invalidate the session in case of reusing next time. + session.invalidate(); session = null; if (!enableNewSession) { throw new SSLException("New session creation is disabled");