From 85d9672e476d805821a0391ce5130a3d2f6275fc Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 19 Nov 2015 22:39:32 +0800 Subject: Send SSH_OPEN_RESOURCE_SHORTAGE response when too many channels open rather than SSH_OPEN_UNKNOWN_CHANNEL_TYPE --- common-channel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common-channel.c b/common-channel.c index b846f28..b3984c4 100644 --- a/common-channel.c +++ b/common-channel.c @@ -971,6 +971,7 @@ void recv_msg_channel_open() { if (channel == NULL) { TRACE(("newchannel returned NULL")) + errtype = SSH_OPEN_RESOURCE_SHORTAGE; goto failure; } -- cgit v1.2.3