aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2014-05-13 09:53:59 +0200
committerIngela Anderton Andin <[email protected]>2014-05-13 09:53:59 +0200
commitf5cc8e99d4b717296880d6959bf2510ad056ae9b (patch)
tree226cfcfa9465206ac0073358f4efc28434328a1b /lib/ssl/src
parent441c5a4dbc01e33db11b9497c14927da1af896f6 (diff)
downloadotp-f5cc8e99d4b717296880d6959bf2510ad056ae9b.tar.gz
otp-f5cc8e99d4b717296880d6959bf2510ad056ae9b.tar.bz2
otp-f5cc8e99d4b717296880d6959bf2510ad056ae9b.zip
ssl: Only allow one next protocol handsake message
Diffstat (limited to 'lib/ssl/src')
-rw-r--r--lib/ssl/src/ssl_connection.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl
index 1eda926bcb..f681204de6 100644
--- a/lib/ssl/src/ssl_connection.erl
+++ b/lib/ssl/src/ssl_connection.erl
@@ -602,7 +602,7 @@ cipher(#finished{verify_data = Data} = Finished,
cipher(#next_protocol{selected_protocol = SelectedProtocol},
#state{role = server, expecting_next_protocol_negotiation = true} = State0, Connection) ->
{Record, State} = Connection:next_record(State0#state{next_protocol = SelectedProtocol}),
- Connection:next_state(cipher, cipher, Record, State);
+ Connection:next_state(cipher, cipher, Record, State#state{expecting_next_protocol_negotiation = false});
cipher(timeout, State, _) ->
{next_state, cipher, State, hibernate};