diff options
author | root <root@rshg054.dnsready.net> | 2013-06-19 01:37:15 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-06-19 01:37:15 -0700 |
commit | 603bdf488872afbc69493bc640aedb7548f3ed51 (patch) | |
tree | 60945d453f0d8b5f8fb9ed8cb8d4e35c5d8d5dcf /extra/cups/ppd-poll-with-client-conf.patch | |
parent | 614d2fec699c594b1a3a25c973e0b5150302ff0e (diff) |
Wed Jun 19 01:36:52 PDT 2013
Diffstat (limited to 'extra/cups/ppd-poll-with-client-conf.patch')
-rw-r--r-- | extra/cups/ppd-poll-with-client-conf.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/extra/cups/ppd-poll-with-client-conf.patch b/extra/cups/ppd-poll-with-client-conf.patch new file mode 100644 index 000000000..8985fa3be --- /dev/null +++ b/extra/cups/ppd-poll-with-client-conf.patch @@ -0,0 +1,23 @@ +Description: If an external server is used via client.conf and the DNS is inconsistent (ex: DNS gives "noname" for many IPs, reverse DNS gives one of these IPs for "noname") local PPDs can get polled for print queues instead of the PPDs of the external server +Bug: http://www.cups.org/str.php?L2763 + +--- a/cups/util.c ++++ b/cups/util.c +@@ -1085,11 +1085,13 @@ + http2 = http; + else if ((http2 = httpConnectEncrypt(hostname, port, + cupsEncryption())) == NULL) +- { +- DEBUG_puts("1cupsGetPPD3: Unable to connect to server"); ++ if ((http2 = httpConnectEncrypt(http_hostname, http_port, ++ cupsEncryption())) == NULL) ++ { ++ DEBUG_puts("1cupsGetPPD3: Unable to connect to server"); + +- return (HTTP_SERVICE_UNAVAILABLE); +- } ++ return (HTTP_SERVICE_UNAVAILABLE); ++ } + + /* + * Get a temp file... |