diff --git a/usr.bin/telnet/telnet.c b/usr.bin/telnet/telnet.c index da8b0e113bf1..8d2aa8714502 100644 --- a/usr.bin/telnet/telnet.c +++ b/usr.bin/telnet/telnet.c @@ -1987,7 +1987,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. */