aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-05-20 15:14:12 +0200
committerIngela Anderton Andin <[email protected]>2016-05-20 16:05:19 +0200
commite63b07167e3bcfc848ae6f0f08981d04fab991bc (patch)
tree9c50df11db32e8bf7e8559185593acfa381c719c /lib/ssl/src
parent95aa90ef7c43c04d4bc2062d1caa47adfb93863d (diff)
downloadotp-e63b07167e3bcfc848ae6f0f08981d04fab991bc.tar.gz
otp-e63b07167e3bcfc848ae6f0f08981d04fab991bc.tar.bz2
otp-e63b07167e3bcfc848ae6f0f08981d04fab991bc.zip
ssl: Send correct close message
Diffstat (limited to 'lib/ssl/src')
-rw-r--r--lib/ssl/src/tls_connection.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/tls_connection.erl b/lib/ssl/src/tls_connection.erl
index 208edc644a..40f3eea527 100644
--- a/lib/ssl/src/tls_connection.erl
+++ b/lib/ssl/src/tls_connection.erl
@@ -922,7 +922,7 @@ alert_user(Transport, Tracker, Socket,_, _, _, From, Alert, Role) ->
alert_user(Transport, Tracker, Socket, From, Alert, Role) ->
alert_user(Transport, Tracker, Socket, false, no_pid, From, Alert, Role).
-alert_user(_, _, _, false = Active, Pid, From, Alert, Role) ->
+alert_user(_, _, _, false = Active, Pid, From, Alert, Role) when From =/= undefined ->
%% If there is an outstanding ssl_accept | recv
%% From will be defined and send_or_reply will
%% send the appropriate error message.