From 9b1fd29c0935b780eb288965d6e9a0fab7c0d28d Mon Sep 17 00:00:00 2001 From: xuelei Date: Mon, 13 Jul 2015 13:37:22 +0000 Subject: [PATCH] 8130864: Better server identity handling Reviewed-by: jnimeh, asmotrak, ahgross --- src/share/classes/sun/security/ssl/ClientHandshaker.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/share/classes/sun/security/ssl/ClientHandshaker.java b/src/share/classes/sun/security/ssl/ClientHandshaker.java index 4b887cbe2..90691f7e5 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"); -- GitLab