Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/netinet6 pullup-1-6 ticket #457 (itojun).



details:   https://anonhg.NetBSD.org/src/rev/e23d62de6e3a
branches:  netbsd-1-6
changeset: 528389:e23d62de6e3a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jul 11 18:26:02 2002 +0000

description:
pullup-1-6 ticket #457 (itojun).

Original log message:
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 e6653e2f1e35 -r e23d62de6e3a sys/netinet6/icmp6.c
--- a/sys/netinet6/icmp6.c      Wed Jul 10 02:34:46 2002 +0000
+++ b/sys/netinet6/icmp6.c      Thu Jul 11 18:26:02 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: icmp6.c,v 1.75.8.2 2002/06/05 03:52:52 lukem Exp $     */
+/*     $NetBSD: icmp6.c,v 1.75.8.3 2002/07/11 18:26:02 thorpej 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.75.8.2 2002/06/05 03:52:52 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.75.8.3 2002/07/11 18:26:02 thorpej 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