aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-06-20 12:46:26 +0200
committerHans Nilsson <[email protected]>2018-06-20 12:46:26 +0200
commitfef7ad89ab1802114f9c69709a1227fac92aa6a0 (patch)
tree995b7289a5dbe7e157d66e33e4391cb60756f00a /lib/ssh
parentdb6059a9217767a6e42e93cec05089c0ec977d20 (diff)
downloadotp-fef7ad89ab1802114f9c69709a1227fac92aa6a0.tar.gz
otp-fef7ad89ab1802114f9c69709a1227fac92aa6a0.tar.bz2
otp-fef7ad89ab1802114f9c69709a1227fac92aa6a0.zip
ssh: Fix ssh_xfer decode_ATTR error for Vsn=4
Diffstat (limited to 'lib/ssh')
-rw-r--r--lib/ssh/src/ssh_xfer.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_xfer.erl b/lib/ssh/src/ssh_xfer.erl
index e1680c120e..7bb9c2d101 100644
--- a/lib/ssh/src/ssh_xfer.erl
+++ b/lib/ssh/src/ssh_xfer.erl
@@ -734,7 +734,7 @@ decode_ATTR(Vsn, <<?UINT32(Flags), Tail/binary>>) ->
{Type,Tail2} =
if Vsn =< 3 ->
{?SSH_FILEXFER_TYPE_UNKNOWN, Tail};
- Vsn >= 5 ->
+ true ->
<<?BYTE(T), TL/binary>> = Tail,
{T, TL}
end,