Skip to content

Commit

Permalink
ssh: be less strict decoding SSH_MSG_IGNORE
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrejbr committed Dec 18, 2024
1 parent 0e6259e commit 2fbace7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ssh/src/ssh_message.erl
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,9 @@ decode(<<?BYTE(?SSH_MSG_DISCONNECT), ?UINT32(Code), ?DEC_BIN(Desc,__0)>>) ->
decode(<<?SSH_MSG_NEWKEYS>>) ->
#ssh_msg_newkeys{};

%% Accept SSH_MSG_IGNORE without data to have feature parity with other implementations like openssh
decode(<<?BYTE(?SSH_MSG_IGNORE)>>) ->
#ssh_msg_ignore{};
decode(<<?BYTE(?SSH_MSG_IGNORE), ?DEC_BIN(Data,__0)>>) ->
#ssh_msg_ignore{data = Data};

Expand Down

0 comments on commit 2fbace7

Please sign in to comment.