From 4f2e06f47a7cb3e99990295c4e346722a3039cb6 Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Tue, 25 Apr 2006 23:31:46 +0200 Subject: [PATCH] conf: parsing IP address fixed --- lib/conf2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/conf2.c b/lib/conf2.c index 680d206a..6da13950 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