mirror of
https://github.com/clearml/dropbear
synced 2025-02-12 07:25:30 +00:00
Send SSH_OPEN_RESOURCE_SHORTAGE response when too many channels open
rather than SSH_OPEN_UNKNOWN_CHANNEL_TYPE
This commit is contained in:
parent
e0ae527190
commit
85d9672e47
@ -971,6 +971,7 @@ void recv_msg_channel_open() {
|
|||||||
|
|
||||||
if (channel == NULL) {
|
if (channel == NULL) {
|
||||||
TRACE(("newchannel returned NULL"))
|
TRACE(("newchannel returned NULL"))
|
||||||
|
errtype = SSH_OPEN_RESOURCE_SHORTAGE;
|
||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user