aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_connection.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-04-20 12:36:28 +0200
committerHans Nilsson <[email protected]>2016-04-27 13:36:53 +0200
commit0594459c07da22dd527d06ad694f30bbdd443c6e (patch)
tree5bfe7cbda25a53b520fcc747dda76e3be466aa3c /lib/ssh/src/ssh_connection.erl
parentfcaf134960f30f96afd08626c2680be84094e1a9 (diff)
downloadotp-0594459c07da22dd527d06ad694f30bbdd443c6e.tar.gz
otp-0594459c07da22dd527d06ad694f30bbdd443c6e.tar.bz2
otp-0594459c07da22dd527d06ad694f30bbdd443c6e.zip
ssh: fix dialyzer warnings and errors
Diffstat (limited to 'lib/ssh/src/ssh_connection.erl')
-rw-r--r--lib/ssh/src/ssh_connection.erl15
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/ssh/src/ssh_connection.erl b/lib/ssh/src/ssh_connection.erl
index 6ca6ed6d77..25d552240a 100644
--- a/lib/ssh/src/ssh_connection.erl
+++ b/lib/ssh/src/ssh_connection.erl
@@ -306,22 +306,11 @@ l2b([]) ->
channel_data(ChannelId, DataType, Data, Connection, From)
when is_list(Data)->
- channel_data(ChannelId, DataType,
-%% list_to_binary(Data), Connection, From);
- l2b(Data), Connection, From);
- %% try list_to_binary(Data)
- %% of
- %% B -> B
- %% catch
- %% _:_ -> io:format('BAD BINARY: ~p~n',[Data]),
- %% unicode:characters_to_binary(Data)
- %% end,
- %% Connection, From);
+ channel_data(ChannelId, DataType, l2b(Data), Connection, From);
channel_data(ChannelId, DataType, Data,
#connection{channel_cache = Cache} = Connection,
From) ->
-
case ssh_channel:cache_lookup(Cache, ChannelId) of
#channel{remote_id = Id, sent_close = false} = Channel0 ->
{SendList, Channel} =
@@ -338,8 +327,6 @@ channel_data(ChannelId, DataType, Data,
{{replies, Replies ++ FlowCtrlMsgs}, Connection};
_ ->
{{replies,[{channel_request_reply,From,{error,closed}}]}, Connection}
- %% gen_fsm:reply(From, {error, closed}),
- %% {noreply, Connection}
end.
handle_msg(#ssh_msg_channel_open_confirmation{recipient_channel = ChannelId,