Skip to content

Commit 0e7c322

Browse files
committed
ssl: Correct gen_statem behaviour modules own alert handling
Own alerts shall be handled by the function ssl_gen_statem:handle_own_alert and not thrown as a local return in the behaviour modules. Alerts are only thrown from helper modules and caught by the main state machine behaviour module that will then call ssl_gen_statem:handle_own_alert.
1 parent b2e2bc4 commit 0e7c322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ssl/src/tls_server_connection.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ wait_cert_verify(internal, #certificate_verify{signature = Signature,
300300
State#state{handshake_env = HsEnv,
301301
session = Session0#session{sign_alg = HashSign}});
302302
#alert{} = Alert ->
303-
throw(Alert)
303+
ssl_gen_statem:handle_own_alert(Alert, ?STATE(wait_cert_verify), State)
304304
end;
305305
wait_cert_verify(Type, Event, State) ->
306306
ssl_gen_statem:handle_common_event(Type, Event, ?STATE(wait_cert_verify), State).

0 commit comments

Comments
 (0)