]> mj.ucw.cz Git - libucw.git/commitdiff
Fixed operator priorities in cf_parse_ip().
authorMartin Mares <mj@ucw.cz>
Tue, 25 Apr 2006 21:21:48 +0000 (23:21 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 25 Apr 2006 21:21:48 +0000 (23:21 +0200)
lib/conf2.c

index 7181411532ce07fee4fc0afa87b07b656dfda012..90fdd0c6d9e280799124d59c232b3a6c4fecb97b 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)