diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-07-19 16:25:52 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-07-19 16:25:52 +0400 |
commit | ca1779b61f9a1f8390d964bf9d76c0f12caa25ed (patch) | |
tree | d61cb5cb35d03f5dbfcf4b402926d4a8b39f1abf /accel-pppd/cli/telnet.c | |
parent | e687bb04784040fb26c231540e3c7b3ad9fd73d9 (diff) | |
parent | 918036a3c42cb6dd5b796c52b6aaf278c466c928 (diff) | |
download | accel-ppp-ca1779b61f9a1f8390d964bf9d76c0f12caa25ed.tar.gz accel-ppp-ca1779b61f9a1f8390d964bf9d76c0f12caa25ed.zip |
Merge commit '918036a3c42cb6dd5b796c52b6aaf278c466c928'
* commit '918036a3c42cb6dd5b796c52b6aaf278c466c928':
cli: telnet: check for disconnect condition while processing input chars
Diffstat (limited to 'accel-pppd/cli/telnet.c')
-rw-r--r-- | accel-pppd/cli/telnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/cli/telnet.c b/accel-pppd/cli/telnet.c index 5cb75c7a..e9e886df 100644 --- a/accel-pppd/cli/telnet.c +++ b/accel-pppd/cli/telnet.c @@ -484,7 +484,7 @@ static int cln_read(struct triton_md_handler_t *h) } /*log_debug("cli: read(%i): ", n); print_buf(cln->recv_buf + cln->recv_pos, n);*/ - for (i = 0; i < n; i++) { + for (i = 0; i < n && !cln->disconnect; i++) { if (telnet_input_char(cln, recv_buf[i])) break; } |