diff options
author | Ingela Anderton Andin <ingela@erlang.org> | 2022-03-25 09:49:13 +0100 |
---|---|---|
committer | Ingela Anderton Andin <ingela@erlang.org> | 2022-03-25 09:49:13 +0100 |
commit | 123e6783bfe0d043ffe983fdc1e0a9f9248eb771 (patch) | |
tree | d0bdc0cb371b0388e51358e1b580080870100814 /lib/ftp | |
parent | 2012f80f5f17b26212c9a5f4fcd2d1087195758b (diff) | |
parent | dd7bd9a58455b1a47061248a55f0f2a9add3bc61 (diff) | |
download | erlang-123e6783bfe0d043ffe983fdc1e0a9f9248eb771.tar.gz |
Merge branch 'maint'
Diffstat (limited to 'lib/ftp')
-rw-r--r-- | lib/ftp/src/ftp.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ftp/src/ftp.erl b/lib/ftp/src/ftp.erl index c0ae13d053..60a88abd70 100644 --- a/lib/ftp/src/ftp.erl +++ b/lib/ftp/src/ftp.erl @@ -1615,7 +1615,6 @@ handle_ctrl_result({pos_compl, _}, #state{tls_upgrading_data_connection = {true, {noreply, State#state{client = undefined, caller = undefined, tls_upgrading_data_connection = false}}; - handle_ctrl_result({pos_compl, _}, #state{caller = open, client = From} = State) -> gen_server:reply(From, {ok, self()}), @@ -1952,7 +1951,10 @@ handle_ctrl_result({pos_prel, _}, #state{caller = {transfer_data, Bin}} %% Default handle_ctrl_result({Status, _Lines}, #state{client = From} = State) when From =/= undefined -> - ctrl_result_response(Status, State, {error, Status}). + ctrl_result_response(Status, State, {error, Status}); +handle_ctrl_result(CtrlMsg, #state{caller = undefined} = State) -> + logger:log(info, #{protocol => ftp, unexpected_msg => CtrlMsg}), + {noreply, State}. %%-------------------------------------------------------------------------- %% Help functions to handle_ctrl_result |