diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2008-03-08 01:52:36 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2008-03-08 01:52:36 +0000 |
commit | b8e2eecbdbf6375f48b8206ca5681148781b49c6 (patch) | |
tree | 91b0a47c9883f3337ad7b9737e7f5ed3eb92974b /sys/netinet6/icmp6.c | |
parent | 512baa4b72c491e73ffd7ec968b1cb332e7d8944 (diff) |
allow a response to icmp6 node information queries where the local
hostname starts with a digit. ok mcbride
Diffstat (limited to 'sys/netinet6/icmp6.c')
-rw-r--r-- | sys/netinet6/icmp6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 8800a65f449..e2a343f77d4 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: icmp6.c,v 1.95 2008/02/05 22:57:31 mpf Exp $ */ +/* $OpenBSD: icmp6.c,v 1.96 2008/03/08 01:52:35 sthen Exp $ */ /* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */ /* @@ -1548,7 +1548,7 @@ ni6_nametodns(name, namelen, old) if (i <= 0 || i >= 64) goto fail; *cp++ = i; - if (!isalpha(p[0]) || !isalnum(p[i - 1])) + if (!isalnum(p[0]) || !isalnum(p[i - 1])) goto fail; while (i > 0) { if (!isalnum(*p) && *p != '-') |