mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-09 21:57:14 +08:00
will commit them separately next time... it's just too much work to do separate commits right now
24 lines
868 B
Diff
24 lines
868 B
Diff
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...
|