summaryrefslogtreecommitdiff
path: root/cups/http-addrlist.c
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2009-01-14 19:55:19 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2009-01-14 19:55:19 +0000
commitd2354e63977f1d0386a8d5724db2ec90fb666824 (patch)
treea79c2dacfa8a2f152008b4cd7dbc9aa503af01e3 /cups/http-addrlist.c
parentc168a833caab4209bdb0035d8918207d40013591 (diff)
downloadcups-d2354e63977f1d0386a8d5724db2ec90fb666824.tar.gz
Merge changes from CUPS 1.4svn-r8252.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@1123 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/http-addrlist.c')
-rw-r--r--cups/http-addrlist.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cups/http-addrlist.c b/cups/http-addrlist.c
index b44acc636..a5b2e1f58 100644
--- a/cups/http-addrlist.c
+++ b/cups/http-addrlist.c
@@ -3,7 +3,7 @@
*
* HTTP address list routines for the Common UNIX Printing System (CUPS).
*
- * Copyright 2007-2008 by Apple Inc.
+ * Copyright 2007-2009 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
*
* These coded instructions, statements, and computer programs are the
@@ -265,6 +265,7 @@ httpAddrGetList(const char *hostname, /* I - Hostname, IP address, or NULL for p
}
else
#endif /* AF_LOCAL */
+ if (!hostname || strcasecmp(hostname, "localhost"))
{
#ifdef HAVE_GETADDRINFO
struct addrinfo hints, /* Address lookup hints */
@@ -501,7 +502,7 @@ httpAddrGetList(const char *hostname, /* I - Hostname, IP address, or NULL for p
* Detect some common errors and handle them sanely...
*/
- if (!addr && (!hostname || !strcmp(hostname, "localhost")))
+ if (!addr && (!hostname || !strcasecmp(hostname, "localhost")))
{
struct servent *port; /* Port number for service */
int portnum; /* Port number */
@@ -530,7 +531,7 @@ httpAddrGetList(const char *hostname, /* I - Hostname, IP address, or NULL for p
else
return (NULL);
- if (hostname && !strcmp(hostname, "localhost"))
+ if (hostname && !strcasecmp(hostname, "localhost"))
{
/*
* Unfortunately, some users ignore all of the warnings in the