jdk/src/share/classes/sun/security/ssl/ClientHandshaker.java
changeset 16071 8b0a4953189c
parent 11521 d7698e6c5f51
child 16080 0e6266b88242
--- 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);
         }