2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-03 08:05:21 +00:00
This commit is contained in:
Mark Andrews
2000-02-02 00:58:15 +00:00
parent 7b24a94d11
commit e63f7c6f55
2 changed files with 4 additions and 3 deletions

View File

@@ -173,7 +173,7 @@ all_digits(const char *s) {
if (*s == '\0') if (*s == '\0')
return (ISC_FALSE); return (ISC_FALSE);
while (*s != '\0') { while (*s != '\0') {
if (!isdigit(*s)) if (!isdigit((*s)&0xff))
return (ISC_FALSE); return (ISC_FALSE);
s++; s++;
} }

View File

@@ -130,8 +130,9 @@ getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
break; break;
default: default:
INSIST(port = 0); port = 0;
INSIST(addr = NULL); addr = NULL;
INSIST(0);
} }
proto = (flags & NI_DGRAM) ? "udp" : "tcp"; proto = (flags & NI_DGRAM) ? "udp" : "tcp";