From: Martin Mares Date: Tue, 25 Apr 2006 21:21:48 +0000 (+0200) Subject: Fixed operator priorities in cf_parse_ip(). X-Git-Tag: holmes-import~645^2~11^2~43 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=db8ca49e5dc5a4de0898f83c25586fbb7a93d1f2;p=libucw.git Fixed operator priorities in cf_parse_ip(). --- diff --git a/lib/conf2.c b/lib/conf2.c index 71814115..90fdd0c6 100644 --- a/lib/conf2.c +++ b/lib/conf2.c @@ -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)