From 2fbace7800e3719566eacdb12f9ed42f05de07ea Mon Sep 17 00:00:00 2001 From: Alexandre Rodrigues Date: Wed, 18 Dec 2024 14:35:17 +0100 Subject: [PATCH] ssh: be less strict decoding SSH_MSG_IGNORE Closes #9213 --- lib/ssh/src/ssh_message.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ssh/src/ssh_message.erl b/lib/ssh/src/ssh_message.erl index 679c07781040..346b77dd0d30 100644 --- a/lib/ssh/src/ssh_message.erl +++ b/lib/ssh/src/ssh_message.erl @@ -554,6 +554,9 @@ decode(<>) -> decode(<>) -> #ssh_msg_newkeys{}; +%% Accept SSH_MSG_IGNORE without data to have feature parity with other implementations like openssh +decode(<>) -> + #ssh_msg_ignore{}; decode(<>) -> #ssh_msg_ignore{data = Data};