2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +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')
return (ISC_FALSE);
while (*s != '\0') {
if (!isdigit(*s))
if (!isdigit((*s)&0xff))
return (ISC_FALSE);
s++;
}

View File

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