summaryrefslogtreecommitdiffstats
path: root/mbbsd/telnet.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-19 00:02:22 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-19 00:02:22 +0800
commit01cb925740f158ccd6ce7f48302080867a09a0ac (patch)
tree90faab403e779ce99c523b84237fedb3e7faf8b7 /mbbsd/telnet.c
parentb7bba29130f01b78922ff4d8f71fc93646a0dbdb (diff)
downloadpttbbs-01cb925740f158ccd6ce7f48302080867a09a0ac.tar
pttbbs-01cb925740f158ccd6ce7f48302080867a09a0ac.tar.gz
pttbbs-01cb925740f158ccd6ce7f48302080867a09a0ac.tar.bz2
pttbbs-01cb925740f158ccd6ce7f48302080867a09a0ac.tar.lz
pttbbs-01cb925740f158ccd6ce7f48302080867a09a0ac.tar.xz
pttbbs-01cb925740f158ccd6ce7f48302080867a09a0ac.tar.zst
pttbbs-01cb925740f158ccd6ce7f48302080867a09a0ac.zip
- improve input system logic
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3842 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/telnet.c')
-rw-r--r--mbbsd/telnet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/telnet.c b/mbbsd/telnet.c
index 4f4bba0b..332b3f3a 100644
--- a/mbbsd/telnet.c
+++ b/mbbsd/telnet.c
@@ -164,7 +164,9 @@ telnet_handler(unsigned char c)
iac_state = IAC_NONE; /* by default we restore state. */
switch(c) {
case IAC:
- return 0;
+ // return 0;
+ // we don't want to allow IACs as input.
+ return 1;
/* we don't want to process these. or maybe in future. */
case BREAK: /* break */