diff options
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/channels.c b/channels.c index 12affdc34..758ea506d 100644 --- a/channels.c +++ b/channels.c | |||
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include "includes.h" | 41 | #include "includes.h" |
42 | RCSID("$OpenBSD: channels.c,v 1.135 2001/10/01 21:38:53 markus Exp $"); | 42 | RCSID("$OpenBSD: channels.c,v 1.136 2001/10/04 15:05:40 markus Exp $"); |
43 | 43 | ||
44 | #include "ssh.h" | 44 | #include "ssh.h" |
45 | #include "ssh1.h" | 45 | #include "ssh1.h" |
@@ -429,14 +429,18 @@ channel_not_very_much_buffered_data() | |||
429 | for (i = 0; i < channels_alloc; i++) { | 429 | for (i = 0; i < channels_alloc; i++) { |
430 | c = channels[i]; | 430 | c = channels[i]; |
431 | if (c != NULL && c->type == SSH_CHANNEL_OPEN) { | 431 | if (c != NULL && c->type == SSH_CHANNEL_OPEN) { |
432 | if (!compat20 && buffer_len(&c->input) > packet_get_maxsize()) { | 432 | #if 0 |
433 | if (!compat20 && | ||
434 | buffer_len(&c->input) > packet_get_maxsize()) { | ||
433 | debug("channel %d: big input buffer %d", | 435 | debug("channel %d: big input buffer %d", |
434 | c->self, buffer_len(&c->input)); | 436 | c->self, buffer_len(&c->input)); |
435 | return 0; | 437 | return 0; |
436 | } | 438 | } |
439 | #endif | ||
437 | if (buffer_len(&c->output) > packet_get_maxsize()) { | 440 | if (buffer_len(&c->output) > packet_get_maxsize()) { |
438 | debug("channel %d: big output buffer %d", | 441 | debug("channel %d: big output buffer %d > %d", |
439 | c->self, buffer_len(&c->output)); | 442 | c->self, buffer_len(&c->output), |
443 | packet_get_maxsize()); | ||
440 | return 0; | 444 | return 0; |
441 | } | 445 | } |
442 | } | 446 | } |