From 5c0e1b1642002cfd906ac5a03b9814ae0836d8c1 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Tue, 12 Jan 2010 14:59:08 +0100 Subject: Minor code cleanup --- lib/ssl/src/ssl_connection.erl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl index c292fd70c7..8e563f36f9 100644 --- a/lib/ssl/src/ssl_connection.erl +++ b/lib/ssl/src/ssl_connection.erl @@ -1115,13 +1115,12 @@ do_server_hello(Type, #state{negotiated_version = Version, case ssl_handshake:master_secret(Version, Session, ConnectionStates0, server) of {_, ConnectionStates1} -> - {ConnectionStates, Hashes} = - finalize_server_handshake(State#state{connection_states=ConnectionStates1, session = Session}), - NewState = - State#state{connection_states = ConnectionStates, - session = Session, - tls_handshake_hashes = Hashes}, - {next_state, abbreviated, next_record(NewState)}; + State1 = State#state{connection_states=ConnectionStates1, + session = Session}, + {ConnectionStates, Hashes} = finalize_server_handshake(State1), + Resumed = State1#state{connection_states = ConnectionStates, + tls_handshake_hashes = Hashes}, + {next_state, abbreviated, next_record(Resumed)}; #alert{} = Alert -> handle_own_alert(Alert, Version, hello, State), {stop, normal, State} -- cgit v1.2.3