]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't allow hostname lookups to fail the HTTP tests when the hostname starts
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 6 Oct 2008 15:30:04 +0000 (15:30 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 6 Oct 2008 15:30:04 +0000 (15:30 +0000)
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

cups/testhttp.c

index 788e430b2a42c71e4ab5f623ee8392dee8b0fea5..20ee496064d479ccffeb318cc646f6a0e2669ec0 100644 (file)
@@ -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 ++;