changeset 1166:b0f351edf370

Send SSH_OPEN_RESOURCE_SHORTAGE response when too many channels open rather than SSH_OPEN_UNKNOWN_CHANNEL_TYPE
author Matt Johnston <matt@ucc.asn.au>
date Thu, 19 Nov 2015 22:39:32 +0800
parents a96cf3627a58
children 1397a677cb5c
files common-channel.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}