aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/ftp
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-06-01 22:39:50 +0200
committerHans Nilsson <[email protected]>2016-06-02 19:16:43 +0200
commit27a1d233aca49b3bc4e277398c29eb43868aba15 (patch)
tree31a5976b6278bc3a137796c01a6c7028d5582ddb /lib/inets/src/ftp
parent5dab28556e2b0a93d172d4a7df911b65fb2d1829 (diff)
downloadotp-27a1d233aca49b3bc4e277398c29eb43868aba15.tar.gz
otp-27a1d233aca49b3bc4e277398c29eb43868aba15.tar.bz2
otp-27a1d233aca49b3bc4e277398c29eb43868aba15.zip
ftp: close lsock without crash
Diffstat (limited to 'lib/inets/src/ftp')
-rw-r--r--lib/inets/src/ftp/ftp.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inets/src/ftp/ftp.erl b/lib/inets/src/ftp/ftp.erl
index c2ca511795..996e7bc1e6 100644
--- a/lib/inets/src/ftp/ftp.erl
+++ b/lib/inets/src/ftp/ftp.erl
@@ -1773,7 +1773,7 @@ handle_ctrl_result({Status, Lines},
#state{mode = active,
caller = {setup_data_connection, {LSock, _}}}
= State) ->
- close_connection(LSock),
+ close_connection({tcp,LSock}),
ctrl_result_response(Status, State, {error, Lines});
%% Data connection setup passive mode