aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_transport.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2015-12-08 11:54:32 +0100
committerHans Nilsson <[email protected]>2015-12-08 11:54:32 +0100
commit4b17e3d6585bac8411d8f58d65d05e90156f5664 (patch)
tree4a1f1dff77c1f2b2ed2be7ebd1c265e9fcba69c8 /lib/ssh/src/ssh_transport.erl
parent046b884bb6df7577ac63cec9e0b31c2029bda722 (diff)
parent45c940463b7fc16d81d023013c21eac36cd57939 (diff)
downloadotp-4b17e3d6585bac8411d8f58d65d05e90156f5664.tar.gz
otp-4b17e3d6585bac8411d8f58d65d05e90156f5664.tar.bz2
otp-4b17e3d6585bac8411d8f58d65d05e90156f5664.zip
Merge branch 'maint'
Diffstat (limited to 'lib/ssh/src/ssh_transport.erl')
-rw-r--r--lib/ssh/src/ssh_transport.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl
index 67a0d29bb8..18037b8461 100644
--- a/lib/ssh/src/ssh_transport.erl
+++ b/lib/ssh/src/ssh_transport.erl
@@ -1004,10 +1004,7 @@ handle_packet_part(<<>>, Encrypted0, undefined, #ssh{decrypt = CryptoAlg} = Ssh0
{ok, PacketLen, _, _, _} when PacketLen > ?SSH_MAX_PACKET_SIZE ->
%% far too long message than expected
- throw(#ssh_msg_disconnect{code = ?SSH_DISCONNECT_PROTOCOL_ERROR,
- description = "Bad packet length "
- ++ integer_to_list(PacketLen),
- language = ""});
+ {error, {exceeds_max_size,PacketLen}};
{ok, PacketLen, Decrypted, Encrypted1,
#ssh{recv_mac_size = MacSize} = Ssh1} ->