--- cups/util.c.orig	2008-03-20 11:39:09.000000000 +0100
+++ cups/util.c	2008-03-20 11:39:29.000000000 +0100
@@ -810,7 +810,7 @@
 
   if (!strcasecmp(http_hostname, hostname) && port == http_port)
     http2 = http;
-  else if ((http2 = httpConnectEncrypt(hostname, port,
+  else if ((http2 = httpConnectEncrypt(http_hostname, http_port,
                                        cupsEncryption())) == NULL)
   {
     DEBUG_puts("Unable to connect to server!");
