[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#374009: Bug isolated, patch available



Tags: patch

  As seen in upstream bug report:
http://www.cups.org/str.php?L1717+P0+S-2+C0+I0+E0+Qbad+request

  The bug is not in client, but in libcupsys2. Commit 5748 from upstream
trunk fixes this. I have attached the patch, which applies cleanly
(2-line offset, no fuzz) to cupsys-1.2.1-3 sources.

  After rebuild, install (and hold, while waiting for new packages) the
libcupsys2 package. Printing works again from 1.2.x client to a 1.1.x
backend.


-- 
 Mika Boström      +358-40-525-7347  \-/  The flogging will
 Bostik@iki.fi    www.iki.fi/bostik   X   continue until
 Security freak, and proud of it.    /-\  morale improves
Index: cups/http.c
===================================================================
--- cups/http.c	(revision 5747)
+++ cups/http.c	(revision 5748)
@@ -1809,6 +1809,16 @@
     return (1);
 
  /*
+  * Flush pending data, if any...
+  */
+
+  if (http->wused)
+  {
+    if (httpFlushWrite(http) < 0)
+      return (0);
+  }
+
+ /*
   * If not, check the SSL/TLS buffers and do a select() on the connection...
   */
 

Attachment: signature.asc
Description: Digital signature


Reply to: