# HG changeset patch # User Matt Johnston # Date 1447943972 -28800 # Node ID b0f351edf370713f7a6fa1638d2f549dc8214dc3 # Parent a96cf3627a582089274b17e6df27c44a020360a5 Send SSH_OPEN_RESOURCE_SHORTAGE response when too many channels open rather than SSH_OPEN_UNKNOWN_CHANNEL_TYPE diff -r a96cf3627a58 -r b0f351edf370 common-channel.c --- a/common-channel.c Tue Nov 17 20:53:30 2015 +0800 +++ b/common-channel.c Thu Nov 19 22:39:32 2015 +0800 @@ -971,6 +971,7 @@ if (channel == NULL) { TRACE(("newchannel returned NULL")) + errtype = SSH_OPEN_RESOURCE_SHORTAGE; goto failure; }