Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/telnet bark if mismatched address families are found...



details:   https://anonhg.NetBSD.org/src/rev/e6581c2a9093
branches:  trunk
changeset: 474265:e6581c2a9093
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Jul 02 15:11:53 1999 +0000

description:
bark if mismatched address families are found on source route.

diffstat:

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

diffs (26 lines):

diff -r 42d2fcc68692 -r e6581c2a9093 usr.bin/telnet/commands.c
--- a/usr.bin/telnet/commands.c Fri Jul 02 15:09:10 1999 +0000
+++ b/usr.bin/telnet/commands.c Fri Jul 02 15:11:53 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: commands.c,v 1.26 1999/07/02 15:09:10 itojun Exp $     */
+/*     $NetBSD: commands.c,v 1.27 1999/07/02 15:11:53 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.26 1999/07/02 15:09:10 itojun Exp $");
+__RCSID("$NetBSD: commands.c,v 1.27 1999/07/02 15:11:53 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -2858,6 +2858,7 @@
                        return -1;
                }
                if (ai->ai_family != res->ai_family) {
+                       fprintf(stderr, "%s: address family mismach\n", cp);
                        freeaddrinfo(res);
                        return -1;
                }



Home | Main Index | Thread Index | Old Index