]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/request.c
Load cups into easysw/current.
[thirdparty/cups.git] / cups / request.c
index 53a0f915ce2bfd7e78851876c0d648efc3de5189..95870a8fc7d024a3490408d223443e49e6244216 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: request.c 6355 2007-03-19 06:33:04Z mike $"
+ * "$Id: request.c 6416 2007-03-30 18:30:33Z mike $"
  *
  *   IPP utilities for the Common UNIX Printing System (CUPS).
  *
@@ -361,19 +361,22 @@ cupsDoFileRequest(http_t     *http,       /* I - HTTP connection to server */
 
       while ((state = ippRead(http, response)) != IPP_DATA)
        if (state == IPP_ERROR)
-       {
-        /*
-          * Delete the response...
-         */
+         break;
+
+      if (state == IPP_ERROR)
+      {
+       /*
+        * Delete the response...
+       */
 
-          DEBUG_puts("IPP read error!");
-         ippDelete(response);
-         response = NULL;
+        DEBUG_puts("IPP read error!");
+       ippDelete(response);
+       response = NULL;
 
-          _cupsSetError(IPP_SERVICE_UNAVAILABLE, strerror(errno));
+        _cupsSetError(IPP_SERVICE_UNAVAILABLE, strerror(errno));
 
-         break;
-       }
+       break;
+      }
     }
   }
 
@@ -507,5 +510,5 @@ _cupsSetError(ipp_status_t status,  /* I - IPP status code */
 
 
 /*
- * End of "$Id: request.c 6355 2007-03-19 06:33:04Z mike $".
+ * End of "$Id: request.c 6416 2007-03-30 18:30:33Z mike $".
  */