Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/telnet just to be sure, set telnetport to 0.



details:   https://anonhg.NetBSD.org/src/rev/d9857d728c09
branches:  trunk
changeset: 514460:d9857d728c09
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Sep 03 07:51:43 2001 +0000

description:
just to be sure, set telnetport to 0.
From: Pekka Savola <pekkas%netcore.fi@localhost>

diffstat:

 usr.bin/telnet/commands.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 07b4d88e2559 -r d9857d728c09 usr.bin/telnet/commands.c
--- a/usr.bin/telnet/commands.c Mon Sep 03 05:02:18 2001 +0000
+++ b/usr.bin/telnet/commands.c Mon Sep 03 07:51:43 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: commands.c,v 1.45 2001/01/16 02:50:31 cgd Exp $        */
+/*     $NetBSD: commands.c,v 1.46 2001/09/03 07:51:43 itojun Exp $     */
 
 /*
  * Copyright (C) 1997 and 1998 WIDE Project.
@@ -67,7 +67,7 @@
 #if 0
 static char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95";
 #else
-__RCSID("$NetBSD: commands.c,v 1.45 2001/01/16 02:50:31 cgd Exp $");
+__RCSID("$NetBSD: commands.c,v 1.46 2001/09/03 07:51:43 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -2454,7 +2454,8 @@
        /* use telnet negotiation if port number/name preceded by minus sign */
        telnetport = 1;
        portp++;
-    }
+    } else
+       telnetport = 0;
 
     memset(&hints, 0, sizeof(hints));
     hints.ai_family = AF_UNSPEC;



Home | Main Index | Thread Index | Old Index