When we get TTYPE, throw out if TTYPE not set, not TSPEED not set.
authorPaul Borman <borman@ucbvax.Berkeley.EDU>
Wed, 6 Sep 1989 04:42:16 +0000 (20:42 -0800)
committerPaul Borman <borman@ucbvax.Berkeley.EDU>
Wed, 6 Sep 1989 04:42:16 +0000 (20:42 -0800)
SCCS-vsn: libexec/telnetd/state.c 5.2

usr/src/libexec/telnetd/state.c

index 986e383..bcf6d82 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)state.c    5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)state.c    5.2 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "telnetd.h"
 #endif /* not lint */
 
 #include "telnetd.h"
@@ -856,7 +856,7 @@ suboption()
     case TELOPT_TTYPE: {               /* Yaaaay! */
        static char terminalname[5+41] = "TERM=";
 
     case TELOPT_TTYPE: {               /* Yaaaay! */
        static char terminalname[5+41] = "TERM=";
 
-       if (hisopts[TELOPT_TSPEED] == OPT_NO)   /* Ignore if option disabled */
+       if (hisopts[TELOPT_TTYPE] == OPT_NO)    /* Ignore if option disabled */
                break;
        settimer(ttypesubopt);
 
                break;
        settimer(ttypesubopt);