aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2014-02-04 14:19:34 +0100
committerHans Nilsson <[email protected]>2014-02-14 10:42:00 +0100
commit0ce8bca286c0d283e8ef833ce73284d717c1c161 (patch)
treefeab8a1cde4aa729084042f528b231efedef53d3 /lib
parentce3d6e8b4f13bd1b2f9aab879c3439dbf71ee0ec (diff)
downloadotp-0ce8bca286c0d283e8ef833ce73284d717c1c161.tar.gz
otp-0ce8bca286c0d283e8ef833ce73284d717c1c161.tar.bz2
otp-0ce8bca286c0d283e8ef833ce73284d717c1c161.zip
Fix that result on stderr sent back to ssh:exec had length info present
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh/src/ssh_message.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh_message.erl b/lib/ssh/src/ssh_message.erl
index 7bd0375521..2cb33eff32 100644
--- a/lib/ssh/src/ssh_message.erl
+++ b/lib/ssh/src/ssh_message.erl
@@ -315,8 +315,8 @@ decode(<<?BYTE(?SSH_MSG_CHANNEL_DATA), ?UINT32(Recipient), ?UINT32(Len), Data:Le
recipient_channel = Recipient,
data = Data
};
-decode(<<?BYTE(?SSH_MSG_CHANNEL_EXTENDED_DATA), ?UINT32(Recipient),
- ?UINT32(DataType), Data/binary>>) ->
+decode(<<?BYTE(?SSH_MSG_CHANNEL_EXTENDED_DATA), ?UINT32(Recipient),
+ ?UINT32(DataType), ?UINT32(Len), Data:Len/binary>>) ->
#ssh_msg_channel_extended_data{
recipient_channel = Recipient,
data_type_code = DataType,