8130864: Better server identity handling

Reviewed-by: jnimeh, asmotrak, ahgross
This commit is contained in:
Xue-Lei Andrew Fan 2015-07-13 13:37:22 +00:00
parent 3ca3a07d79
commit 6055fda904

View File

@ -672,6 +672,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");