summaryrefslogtreecommitdiff
path: root/cups/request.c
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-04-02 15:56:16 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-04-02 15:56:16 +0000
commitc0e1af835b65e53b4506f37f235c7cdc820dffa8 (patch)
tree02074fc1df79e914b7a6777ab1e6e9e6da1e79ad /cups/request.c
parentf42414bf8a43f4c1b464bf1de9d357edba4fd439 (diff)
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@303 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/request.c')
-rw-r--r--cups/request.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/cups/request.c b/cups/request.c
index 53a0f915c..95870a8fc 100644
--- a/cups/request.c
+++ b/cups/request.c
@@ -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 $".
*/