From 5a0fcb97e6492b20250d98043c7e58e011844b83 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Feb 04 2020 12:04:23 +0000 Subject: import cups-filters-1.0.35-26.el7_7.1 --- 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 77925eb..819af53 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.0.35 -Release: 26%{?dist} +Release: 26%{?dist}.1 # For a breakdown of the licensing, see COPYING file # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, @@ -44,6 +44,8 @@ Patch10: 0001-Fixing-covscan-issues.patch Patch11: 0001-cups-browsed-Fixed-freeing-of-literal-string-caused-.patch # bad paths in manpages (bug #1508018) Patch12: cups-filters-manpages.patch +# 1776400 - Updated cups-browsed in RHEL 7.7 leaks sockets +Patch13: cups-browsed-socket-leak.patch Requires: cups-filters-libs%{?_isa} = %{version}-%{release} @@ -174,6 +176,9 @@ cp %{SOURCE5} . # 1508018 - man pages: wrong links in man cups-browsed %patch12 -p1 -b .manpages +# 1776400 - Updated cups-browsed in RHEL 7.7 leaks sockets +%patch13 -p1 -b .cups-browsed-socket-leak + %build # work-around Rpath ./autogen.sh @@ -281,6 +286,9 @@ fi %{_libdir}/libfontembed.so %changelog +* Tue Nov 26 2019 Zdenek Dohnal - 1.0.35-26.1 +- 1776400 - Updated cups-browsed in RHEL 7.7 leaks sockets + * Tue May 21 2019 Zdenek Dohnal - 1.0.35-26 - 1508018 - man pages: wrong links in man cups-browsed