summaryrefslogtreecommitdiff
path: root/accel-pptpd
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pptpd')
-rw-r--r--accel-pptpd/cli/telnet.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/accel-pptpd/cli/telnet.c b/accel-pptpd/cli/telnet.c
index 056cb30..256f236 100644
--- a/accel-pptpd/cli/telnet.c
+++ b/accel-pptpd/cli/telnet.c
@@ -249,7 +249,7 @@ static int telnet_input_char(struct telnet_client_t *cln, uint8_t c)
{
uint8_t buf[] = {IAC, DONT, 0};
struct buffer_t *b;
-
+
if (c == '\n')
return 0;
@@ -407,6 +407,9 @@ static int telnet_input_char(struct telnet_client_t *cln, uint8_t c)
cln->cmdline_len--;
}
return 0;
+ case 3:
+ disconnect(cln);
+ return -1;
}
if (isprint(c)) {