libcups: avoid race condition when sending IPP requests (STR #4386).

This commit is contained in:
Tim Waugh 2014-03-06 11:01:13 +00:00
parent 3933cbca34
commit fb3a0f4a71
2 changed files with 16 additions and 0 deletions

12
cups-str4386.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up cups-1.7.1/cups/request.c.str4386 cups-1.7.1/cups/request.c
--- cups-1.7.1/cups/request.c.str4386 2013-07-23 13:33:52.000000000 +0100
+++ cups-1.7.1/cups/request.c 2014-03-06 10:58:39.018807898 +0000
@@ -261,7 +261,7 @@ cupsDoIORequest(http_t *http, /* I -
* Get the server's response...
*/
- if (status != HTTP_STATUS_ERROR)
+ if (status <= HTTP_STATUS_CONTINUE)
{
response = cupsGetResponse(http, resource);
status = httpGetStatus(http);

View File

@ -70,6 +70,7 @@ Patch42: cups-synconclose.patch
Patch43: cups-avahi-browse.patch
Patch44: cups-str4380.patch
Patch45: cups-str4366.patch
Patch46: cups-str4386.patch
Patch100: cups-lspp.patch
@ -269,6 +270,8 @@ Sends IPP requests to the specified URI and tests and/or displays the results.
%patch44 -p1 -b .str4380
# Prevent feedback loop when fetching error_log over HTTP (STR #4366).
%patch45 -p1 -b .str4366
# libcups: avoid race condition when sending IPP requests (STR #4386).
%patch46 -p1 -b .str4386
%if %lspp
# LSPP support.
@ -650,6 +653,7 @@ rm -f %{cups_serverbin}/backend/smb
%changelog
* Thu Mar 6 2014 Tim Waugh <twaugh@redhat.com> - 1:1.7.1-6
- libcups: avoid race condition when sending IPP requests (STR #4386).
- Prevent feedback loop when fetching error_log over HTTP (STR #4366).
* Wed Mar 5 2014 Tim Waugh <twaugh@redhat.com> - 1:1.7.1-5