diff options
author | Hans Nilsson <[email protected]> | 2014-02-04 14:19:34 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2014-02-05 16:36:09 +0100 |
commit | a6e276c39becc11c5be5d45aaa019dd484b881c5 (patch) | |
tree | 2234ddfa136ac4d72ff8cf6be2fae031efff8364 | |
parent | 88a40030a9d7a81a51824cfa17427f4ed4ed2156 (diff) | |
download | otp-a6e276c39becc11c5be5d45aaa019dd484b881c5.tar.gz otp-a6e276c39becc11c5be5d45aaa019dd484b881c5.tar.bz2 otp-a6e276c39becc11c5be5d45aaa019dd484b881c5.zip |
Fix that result on stderr sent back to ssh:exec had length info present
-rw-r--r-- | lib/ssh/src/ssh_message.erl | 4 |
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, |