Commit 960f71e2 authored by Niels Möller's avatar Niels Möller
Browse files

(channel_open_handler): Bugfix for the case that

alloc_channel fails.

Rev: src/channel.c:1.120
parent c5097e4e
......@@ -1108,11 +1108,14 @@ DEFINE_PACKET_HANDLER(static, channel_open_handler,
int local_number = alloc_channel(connection->table);
if (local_number < 0)
C_WRITE(connection,
format_open_failure(info.remote_channel_number,
SSH_OPEN_RESOURCE_SHORTAGE,
"Channel limit exceeded.", ""));
{
C_WRITE(connection,
format_open_failure(info.remote_channel_number,
SSH_OPEN_RESOURCE_SHORTAGE,
"Channel limit exceeded.", ""));
return;
}
CHANNEL_OPEN(open, connection,
&info,
&buffer,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment