]> mj.ucw.cz Git - libucw.git/commitdiff
conf: parsing IP address fixed
authorRobert Spalek <robert@ucw.cz>
Tue, 25 Apr 2006 21:31:46 +0000 (23:31 +0200)
committerRobert Spalek <robert@ucw.cz>
Tue, 25 Apr 2006 21:31:46 +0000 (23:31 +0200)
lib/conf2.c

index 680d206acdaf746979ab1cb5f5b043ad086fd5c1..6da139503dcb75947e9a875d1ef20af004cf0959 100644 (file)
@@ -555,7 +555,7 @@ cf_parse_ip(byte *p, u32 *varp)
     return "Missing IP address";
   uns x = 0;
   char *p2;
-  if (*p == '0' && (p[1] | 32) == 'X' && Cxdigit(p[2])) {
+  if (*p == '0' && (p[1] | 32) == 'x' && Cxdigit(p[2])) {
     errno = 0;
     x = strtoul(p, &p2, 16);
     if (errno == ERANGE || x > 0xffffffff)