Skip to content

Commit 2fbace7

Browse files
committed
ssh: be less strict decoding SSH_MSG_IGNORE
Closes erlang#9213
1 parent 0e6259e commit 2fbace7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ssh/src/ssh_message.erl

+3
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,9 @@ decode(<<?BYTE(?SSH_MSG_DISCONNECT), ?UINT32(Code), ?DEC_BIN(Desc,__0)>>) ->
554554
decode(<<?SSH_MSG_NEWKEYS>>) ->
555555
#ssh_msg_newkeys{};
556556

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

0 commit comments

Comments
 (0)