From db8ca49e5dc5a4de0898f83c25586fbb7a93d1f2 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 25 Apr 2006 23:21:48 +0200 Subject: [PATCH] Fixed operator priorities in cf_parse_ip(). --- lib/conf2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2