diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/telnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/telnet.c b/mbbsd/telnet.c index f348f08c..d60254ac 100644 --- a/mbbsd/telnet.c +++ b/mbbsd/telnet.c @@ -55,7 +55,7 @@ tty_read(unsigned char *buf, size_t max) if(l == 0 || (l < 0 && !(errno == EINTR || errno == EAGAIN))) abort_bbs(0); - if(!raw_connection) + if(!raw_connection || l <= 0) return l; l = telnet_process(ctx, buf, l); |