Skip to content

Commit c7238e6

Browse files
author
Maciej Szlosarczyk
committed
Ensure that state has always a session_id
1 parent 036c63b commit c7238e6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/epp_proxy/src/epp_tls_worker.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ start_link(Socket) ->
4242
%% Client IP address,
4343
%% If certificate is revoked, this will fail right away here.
4444
%% mod_epp does exactly the same thing.
45-
handle_cast(serve, State = #state{socket = Socket}) ->
45+
handle_cast(serve,
46+
State = #state{socket = Socket,
47+
session_id = _SessionId}) ->
4648
{ok, {PeerIp, _PeerPort}} = ssl:peername(Socket),
4749
case ssl:handshake(Socket) of
4850
{ok, SecureSocket} ->

0 commit comments

Comments
 (0)