changeset 11274:6e04b32f6466

8130864: Better server identity handling Reviewed-by: jnimeh, asmotrak, ahgross
author xuelei
date Mon, 13 Jul 2015 13:37:22 +0000
parents 0548dc46262f
children 1c0d831bbe6e
files src/share/classes/sun/security/ssl/ClientHandshaker.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/ssl/ClientHandshaker.java	Tue Jul 14 22:51:58 2015 -0500
+++ b/src/share/classes/sun/security/ssl/ClientHandshaker.java	Mon Jul 13 13:37:22 2015 +0000
@@ -620,6 +620,9 @@
                 }
             } 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");