@@ -299,9 +299,9 @@ abbreviated({call, From}, Msg, State) ->
299299    handle_call (Msg , From , ? STATE (abbreviated ), State );
300300abbreviated (internal ,
301301	    # change_cipher_spec {type  =  <<1 >>},
302-             # state {static_env  =  # static_env { protocol_cb  =  Connection } ,
303-                    connection_states  =  ConnectionStates0 ,
304-                    handshake_env  =  HsEnv } =  State ) -> 
302+             # state {handshake_env  =  # handshake_env { expecting_finished  =  false }  =   HsEnv ,
303+                    static_env  =  # static_env { protocol_cb   =   Connection } ,
304+                    connection_states  =  ConnectionStates0 } =  State ) -> 
305305    ConnectionStates1  = 
306306	ssl_record :activate_pending_connection_state (ConnectionStates0 , read , Connection ),
307307    Connection :next_event (? STATE (abbreviated ), no_record ,
@@ -333,7 +333,7 @@ certify(Type, Event, State) ->
333333cipher ({call , From }, Msg , State ) -> 
334334    handle_call (Msg , From , ? STATE (cipher ), State );
335335cipher (internal , # change_cipher_spec {type  =  <<1 >>},
336-        # state {handshake_env  =  HsEnv ,
336+        # state {handshake_env  =  # handshake_env { expecting_finished   =   false }  =   HsEnv ,
337337              static_env  =  # static_env {protocol_cb  =  Connection },
338338              connection_states  =  ConnectionStates0 } =  State ) -> 
339339    ConnectionStates  = 
0 commit comments