diff options
author | markm <markm@FreeBSD.org> | 2001-08-20 12:28:40 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-08-20 12:28:40 +0000 |
commit | 62fa01a04b42f494fdbb2d37f587cf04a6d1aacb (patch) | |
tree | 2ba46740530084e43c8757dfe6c194c01635f8d3 /contrib/telnet/telnetd/state.c | |
parent | 83e59be2f658dd3a79d19c79cb5e76b14fd75880 (diff) | |
download | FreeBSD-src-62fa01a04b42f494fdbb2d37f587cf04a6d1aacb.zip FreeBSD-src-62fa01a04b42f494fdbb2d37f587cf04a6d1aacb.tar.gz |
Code merge and diff reduce with "base" telnet. This is the "later"
telnet, so it was treated as the reference code, except where later
commits were made to "base" telnet.
Diffstat (limited to 'contrib/telnet/telnetd/state.c')
-rw-r--r-- | contrib/telnet/telnetd/state.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/telnet/telnetd/state.c b/contrib/telnet/telnetd/state.c index f5b1299..6d7ca94 100644 --- a/contrib/telnet/telnetd/state.c +++ b/contrib/telnet/telnetd/state.c @@ -721,6 +721,7 @@ wontoption(option) */ if (lmodetype != REAL_LINEMODE) break; + lmodetype = KLUDGE_LINEMODE; # endif /* KLUDGELINEMODE */ clientstat(TELOPT_LINEMODE, WONT, 0); break; @@ -1551,10 +1552,14 @@ send_status() if (my_want_state_is_will(i)) { ADD(WILL); ADD_DATA(i); + if (i == IAC) + ADD(IAC); } if (his_want_state_is_will(i)) { ADD(DO); ADD_DATA(i); + if (i == IAC) + ADD(IAC); } } |