Skip to content

Commit

Permalink
Merge pull request #16 from internetee/fix-missing-state
Browse files Browse the repository at this point in the history
Ensure that state has always a session_id
  • Loading branch information
Maciej Szlosarczyk authored Jul 29, 2019
2 parents 036c63b + c7238e6 commit 98483da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/epp_proxy/src/epp_tls_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ start_link(Socket) ->
%% Client IP address,
%% If certificate is revoked, this will fail right away here.
%% mod_epp does exactly the same thing.
handle_cast(serve, State = #state{socket = Socket}) ->
handle_cast(serve,
State = #state{socket = Socket,
session_id = _SessionId}) ->
{ok, {PeerIp, _PeerPort}} = ssl:peername(Socket),
case ssl:handshake(Socket) of
{ok, SecureSocket} ->
Expand Down

0 comments on commit 98483da

Please sign in to comment.