aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/telnet/telnet/telnet.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>1999-06-17 09:24:37 +0000
committerRuslan Ermilov <ru@FreeBSD.org>1999-06-17 09:24:37 +0000
commit42cf8219dc6a0ed7abebbe00ab0cf8947a64c071 (patch)
tree09dc7ca682f80a27a5977c057974c0e429fc81de /crypto/telnet/telnet/telnet.c
parent1181cf3c527b0c66dd5a41f8720e5dc67e4b194a (diff)
downloadsrc-42cf8219dc6a0ed7abebbe00ab0cf8947a64c071.tar.gz
src-42cf8219dc6a0ed7abebbe00ab0cf8947a64c071.zip
Merge from non-crypto version:
- "-N" option - "-E" security fix - "-s src_addr" option Requested by: markm
Notes
Notes: svn path=/head/; revision=47973
Diffstat (limited to 'crypto/telnet/telnet/telnet.c')
-rw-r--r--crypto/telnet/telnet/telnet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/telnet/telnet/telnet.c b/crypto/telnet/telnet/telnet.c
index 1c1ee333fa72..e1716857af8b 100644
--- a/crypto/telnet/telnet/telnet.c
+++ b/crypto/telnet/telnet/telnet.c
@@ -116,6 +116,7 @@ int
donebinarytoggle, /* the user has put us in binary */
dontlecho, /* do we suppress local echoing right now? */
globalmode,
+ doaddrlookup = 1, /* do a reverse address lookup? */
clienteof = 0;
char *prompt = 0;
@@ -2083,7 +2084,7 @@ telsnd()
}
if ((sc == '\n') || (sc == '\r'))
bol = 1;
- } else if (sc == escape) {
+ } else if (escape != _POSIX_VDISABLE && sc == escape) {
/*
* Double escape is a pass through of a single escape character.
*/