Send SSH_OPEN_RESOURCE_SHORTAGE response when too many channels open

rather than SSH_OPEN_UNKNOWN_CHANNEL_TYPE
This commit is contained in:
Matt Johnston 2015-11-19 22:39:32 +08:00
parent e0ae527190
commit 85d9672e47

View File

@ -971,6 +971,7 @@ void recv_msg_channel_open() {
if (channel == NULL) {
TRACE(("newchannel returned NULL"))
errtype = SSH_OPEN_RESOURCE_SHORTAGE;
goto failure;
}