Skip to content

Commit 98483da

Browse files
author
Maciej Szlosarczyk
authored
Merge pull request #16 from internetee/fix-missing-state
Ensure that state has always a session_id
2 parents 036c63b + c7238e6 commit 98483da

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)