From 94a27cf21686146bb015ec48f43ebfd72ce3a74e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 28 2020 08:54:36 +0000 Subject: import cups-filters-1.20.0-19.el8 --- diff --git a/SOURCES/cups-browsed-socket-leak.patch b/SOURCES/cups-browsed-socket-leak.patch new file mode 100644 index 0000000..cf18dfa --- /dev/null +++ b/SOURCES/cups-browsed-socket-leak.patch @@ -0,0 +1,18 @@ +diff --git a/utils/cups-browsed.c b/utils/cups-browsed.c +index c6c257e..2cc64dd 100644 +--- a/utils/cups-browsed.c ++++ b/utils/cups-browsed.c +@@ -2747,6 +2747,13 @@ on_printer_state_changed (CupsNotifier *object, + if (i == q->last_printer) + break; + } ++ ++ /* Close remote connection */ ++ if (http) { ++ httpClose(http); ++ http = NULL; ++ } ++ + /* Find the ID of the current job */ + request = ippNewRequest(IPP_GET_JOBS); + httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, diff --git a/SPECS/cups-filters.spec b/SPECS/cups-filters.spec index 24f23ef..29e0e9e 100644 --- a/SPECS/cups-filters.spec +++ b/SPECS/cups-filters.spec @@ -4,7 +4,7 @@ Summary: OpenPrinting CUPS filters and backends Name: cups-filters Version: 1.20.0 -Release: 18%{?dist} +Release: 19%{?dist} # For a breakdown of the licensing, see COPYING file # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, @@ -37,6 +37,8 @@ Patch05: cups-browsed.8.patch Patch06: 0001-foomatic-rip-Changed-Ghostscript-call-to-count-pages.patch # rebuild and patch for FIPS compliance, backported from upstream (#1605101) Patch07: pdftopdf-nocrypt.patch +# 1776270 - cups-browsed leaks sockets +Patch08: cups-browsed-socket-leak.patch Requires: cups-filters-libs%{?_isa} = %{version}-%{release} @@ -152,6 +154,8 @@ This is the development package for OpenPrinting CUPS filters and backends. %patch06 -p1 -b .foomatic-rip-crash # 1605101 - qpdf: should not re-implement crypto %patch07 -p1 -b .pdftopdf-nocrypt +# 1776270 - cups-browsed leaks sockets +%patch08 -p1 -b .cups-browsed-socket-leak %build # work-around Rpath @@ -298,6 +302,9 @@ make check %{_libdir}/libfontembed.so %changelog +* Mon Nov 25 2019 Zdenek Dohnal - 1.20.0-19 +- 1776270 - cups-browsed leaks sockets + * Mon Sep 02 2019 Zdenek Dohnal - 1.20.0-18 - 1605101 - qpdf: should not re-implement crypto