From 9449dd948a13e968d0e9ad0bc301510f7206a0ee Mon Sep 17 00:00:00 2001 From: Michael Sweet Date: Mon, 28 Aug 2017 17:59:13 -0400 Subject: [PATCH] The CUPS library did not reuse domain sockets (Issue #5098) --- CHANGES.md | 1 + cups/request.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 28965b441..84afe8a31 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -34,6 +34,7 @@ CHANGES IN CUPS V2.2.5 - The IPP Everywhere PPD generator now sorts the supported resolutions before choosing them for draft, normal, and best quality modes (Issue #5091) - Fixed the localization unit test on Linux (Issue #5097) +- The CUPS library did not reuse domain sockets (Issue #5098) - Fixed an issue with Chinese localizations on macOS (rdar://32419311) - The IPP backend now always sends the "finishings" attribute for printers that support it because otherwise the client cannot override printer defaults diff --git a/cups/request.c b/cups/request.c index 0ab2690aa..f526bf016 100644 --- a/cups/request.c +++ b/cups/request.c @@ -998,7 +998,11 @@ _cupsConnect(void) */ if (strcmp(cg->http->hostname, cg->server) || +#ifdef AF_LOCAL + (httpAddrFamily(cg->http->hostaddr) != AF_LOCAL && cg->ipp_port != httpAddrPort(cg->http->hostaddr)) || +#else cg->ipp_port != httpAddrPort(cg->http->hostaddr) || +#endif /* AF_LOCAL */ (cg->http->encryption != cg->encryption && cg->http->encryption == HTTP_ENCRYPTION_NEVER)) { -- 2.39.2