Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 correct ping6 -w result wth hostname with [A-Z]...



details:   https://anonhg.NetBSD.org/src/rev/f7104ba95a30
branches:  trunk
changeset: 533832:f7104ba95a30
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Jul 10 05:05:01 2002 +0000

description:
correct ping6 -w result wth hostname with [A-Z].  PR 17540.  sync w/kame

diffstat:

 sys/netinet6/icmp6.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 7457e41df2b9 -r f7104ba95a30 sys/netinet6/icmp6.c
--- a/sys/netinet6/icmp6.c      Wed Jul 10 04:29:05 2002 +0000
+++ b/sys/netinet6/icmp6.c      Wed Jul 10 05:05:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: icmp6.c,v 1.83 2002/06/30 22:40:38 thorpej Exp $       */
+/*     $NetBSD: icmp6.c,v 1.84 2002/07/10 05:05:01 itojun Exp $        */
 /*     $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
 
 /*
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.83 2002/06/30 22:40:38 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.84 2002/07/10 05:05:01 itojun Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -1624,9 +1624,10 @@
                        while (i > 0) {
                                if (!isalnum(*p) && *p != '-')
                                        goto fail;
-                               if (isupper(*p))
-                                       *cp++ = tolower(*p++);
-                               else
+                               if (isupper(*p)) {
+                                       *cp++ = tolower(*p);
+                                       p++;
+                               } else
                                        *cp++ = *p++;
                                i--;
                        }



Home | Main Index | Thread Index | Old Index