mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-28 13:24:02 -04:00
fix calls to isdigit()
This commit is contained in:
parent
9cef6ad3b6
commit
b3a2ce7d96
1 changed files with 3 additions and 3 deletions
|
|
@ -17,7 +17,7 @@
|
|||
*/
|
||||
|
||||
#if !defined(lint) && !defined(SABER)
|
||||
static char rcsid[] = "$Id: confparser.y,v 1.17 1999/10/29 03:42:03 halley Exp $";
|
||||
static char rcsid[] = "$Id: confparser.y,v 1.18 1999/10/29 04:18:07 marka Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <config.h>
|
||||
|
|
@ -4052,9 +4052,9 @@ is_ip4addr(const char *string, struct in_addr *addr)
|
|||
char dot = '.';
|
||||
|
||||
while (*p) {
|
||||
if (!isdigit(*p) && *p != dot) {
|
||||
if (!isdigit(*p & 0xff) && *p != dot) {
|
||||
return (ISC_FALSE);
|
||||
} else if (!isdigit(*p)) {
|
||||
} else if (!isdigit(*p & 0xff)) {
|
||||
dots++;
|
||||
}
|
||||
p++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue