Mercurial > dropbear
comparison common-channel.c @ 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 | 509cf5df51c6 |
comparison
equal
deleted
inserted
replaced
1165:a96cf3627a58 | 1166:b0f351edf370 |
---|---|
969 /* create the channel */ | 969 /* create the channel */ |
970 channel = newchannel(remotechan, chantype, transwindow, transmaxpacket); | 970 channel = newchannel(remotechan, chantype, transwindow, transmaxpacket); |
971 | 971 |
972 if (channel == NULL) { | 972 if (channel == NULL) { |
973 TRACE(("newchannel returned NULL")) | 973 TRACE(("newchannel returned NULL")) |
974 errtype = SSH_OPEN_RESOURCE_SHORTAGE; | |
974 goto failure; | 975 goto failure; |
975 } | 976 } |
976 | 977 |
977 if (channel->type->inithandler) { | 978 if (channel->type->inithandler) { |
978 ret = channel->type->inithandler(channel); | 979 ret = channel->type->inithandler(channel); |