aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2017-03-24 16:02:15 +0100
committerHans Nilsson <[email protected]>2017-03-24 16:02:15 +0100
commit7f5d5119d59e1741aac6b622880dbc2f08b394de (patch)
tree2ef825030762e7fff01c45c2112b500e76fa8392 /lib
parenta748cafdc7063d9f181ba12088db6458793ced2f (diff)
downloadotp-7f5d5119d59e1741aac6b622880dbc2f08b394de.tar.gz
otp-7f5d5119d59e1741aac6b622880dbc2f08b394de.tar.bz2
otp-7f5d5119d59e1741aac6b622880dbc2f08b394de.zip
ssh: fixed crash in ssh:daemon_info
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh/src/ssh.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl
index 1f3f77a4e4..290525cec0 100644
--- a/lib/ssh/src/ssh.erl
+++ b/lib/ssh/src/ssh.erl
@@ -175,7 +175,7 @@ daemon_info(Pid) ->
case catch ssh_system_sup:acceptor_supervisor(Pid) of
AsupPid when is_pid(AsupPid) ->
[Port] =
- [Prt || {{ssh_acceptor_sup,any,Prt,default},
+ [Prt || {{ssh_acceptor_sup,_,Prt,_},
_WorkerPid,worker,[ssh_acceptor]} <- supervisor:which_children(AsupPid)],
{ok, [{port,Port}]};