Skip to content

Commit 2a78cdb

Browse files
committed
ssh: reduce error data processed upon unicode to list conversion
1 parent 0418c10 commit 2a78cdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ssh/src/ssh_message.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
ucl(B) ->
4747
try unicode:characters_to_list(B) of
4848
L when is_list(L) -> L;
49-
{error,_Matched,Rest} -> throw({error,{bad_unicode,Rest}})
49+
{error,_Matched,_Rest} -> throw({error,bad_unicode})
5050
catch
5151
_:_ -> throw({error,bad_unicode})
5252
end.

0 commit comments

Comments
 (0)