From: mike Date: Mon, 6 Oct 2008 15:30:04 +0000 (+0000) Subject: Don't allow hostname lookups to fail the HTTP tests when the hostname starts X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4bca99a705bcb3d252765f9e65153a92ba3a8e90;p=thirdparty%2Fcups.git Don't allow hostname lookups to fail the HTTP tests when the hostname starts with a number (for ISP-defined numeric addresses) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@8018 7a7537e8-13f0-0310-91df-b6672ffda945 --- diff --git a/cups/testhttp.c b/cups/testhttp.c index 788e430b2a..20ee496064 100644 --- a/cups/testhttp.c +++ b/cups/testhttp.c @@ -323,6 +323,10 @@ main(int argc, /* I - Number of command-line arguments */ httpAddrFreeList(addrlist); } + else if (isdigit(hostname[0] & 255)) + { + puts("FAIL (ignored because hostname is numeric)"); + } else { failures ++;