aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2019-02-01 17:53:32 +0100
committerIngela Anderton Andin <[email protected]>2019-02-01 17:53:32 +0100
commita50f764e5c015f573197aa887242c30430b9d186 (patch)
treeac0e4b6161a14076fa0d06a675b80a2f79c2a121 /lib/ssl
parent14fe4c3ccf93c023f851512e573e2bac7d00b232 (diff)
downloadotp-a50f764e5c015f573197aa887242c30430b9d186.tar.gz
otp-a50f764e5c015f573197aa887242c30430b9d186.tar.bz2
otp-a50f764e5c015f573197aa887242c30430b9d186.zip
ssl: Remove unintended match
Diffstat (limited to 'lib/ssl')
-rw-r--r--lib/ssl/src/dtls_packet_demux.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/dtls_packet_demux.erl b/lib/ssl/src/dtls_packet_demux.erl
index 1497c77cf3..dccc22a448 100644
--- a/lib/ssl/src/dtls_packet_demux.erl
+++ b/lib/ssl/src/dtls_packet_demux.erl
@@ -144,11 +144,11 @@ handle_info({Transport, Socket, IP, InPortNo, _} = Msg, #state{listener = Socket
%% UDP socket does not have a connection and should not receive an econnreset
%% This does however happens on some windows versions. Just ignoring it
%% appears to make things work as expected!
-handle_info({Error, Socket, econnreset = Error}, #state{listener = Socket, transport = {_,_,_, udp_error}} = State) ->
+handle_info({udp_error, Socket, econnreset = Error}, #state{listener = Socket, transport = {_,_,_, udp_error}} = State) ->
Report = io_lib:format("Ignore SSL UDP Listener: Socket error: ~p ~n", [Error]),
error_logger:info_report(Report),
{noreply, State};
-handle_info({Error, Socket, Error}, #state{listener = Socket, transport = {_,_,_, Error}} = State) ->
+handle_info({ErrorTag, Socket, Error}, #state{listener = Socket, transport = {_,_,_, ErrorTag}} = State) ->
Report = io_lib:format("SSL Packet muliplxer shutdown: Socket error: ~p ~n", [Error]),
error_logger:info_report(Report),
{noreply, State#state{close=true}};