aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2014-02-04 14:19:34 +0100
committerHans Nilsson <[email protected]>2014-02-05 16:36:09 +0100
commita6e276c39becc11c5be5d45aaa019dd484b881c5 (patch)
tree2234ddfa136ac4d72ff8cf6be2fae031efff8364 /lib/ssh
parent88a40030a9d7a81a51824cfa17427f4ed4ed2156 (diff)
downloadotp-a6e276c39becc11c5be5d45aaa019dd484b881c5.tar.gz
otp-a6e276c39becc11c5be5d45aaa019dd484b881c5.tar.bz2
otp-a6e276c39becc11c5be5d45aaa019dd484b881c5.zip
Fix that result on stderr sent back to ssh:exec had length info present
Diffstat (limited to 'lib/ssh')
-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 01a0988718..fa4397b2f5 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,