--- a/jdk/src/share/classes/sun/security/ssl/ClientHandshaker.java Fri Oct 12 15:51:44 2012 +0400
+++ b/jdk/src/share/classes/sun/security/ssl/ClientHandshaker.java Mon Oct 15 07:42:18 2012 -0700
@@ -128,9 +128,8 @@
* in the constructor.
*/
void processMessage(byte type, int messageLen) throws IOException {
- if (state > type
- && (type != HandshakeMessage.ht_hello_request
- && state != HandshakeMessage.ht_client_hello)) {
+ if (state >= type
+ && (type != HandshakeMessage.ht_hello_request)) {
throw new SSLProtocolException(
"Handshake message sequence violation, " + type);
}