diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 539be1da7c08..39a60298a4d8 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -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 -__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 @@ ni6_nametodns(name, namelen, old) 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--; }