Blame SOURCES/cups-validate-1st.patch
|
|
fbeb5e |
diff --git a/backend/ipp.c b/backend/ipp.c
|
|
|
fbeb5e |
index 0a70a87..f8bf7e1 100644
|
|
|
fbeb5e |
--- a/backend/ipp.c
|
|
|
fbeb5e |
+++ b/backend/ipp.c
|
|
|
fbeb5e |
@@ -327,6 +327,7 @@ main(int argc, /* I - Number of command-line args */
|
|
|
fbeb5e |
get_job_attrs = 0, /* Does printer support Get-Job-Attributes? */
|
|
|
fbeb5e |
send_document = 0, /* Does printer support Send-Document? */
|
|
|
fbeb5e |
validate_job = 0, /* Does printer support Validate-Job? */
|
|
|
fbeb5e |
+ validation_retried = 0, /* Indicate whether Validate-Job was retried */
|
|
|
fbeb5e |
copies, /* Number of copies for job */
|
|
|
fbeb5e |
copies_remaining; /* Number of copies remaining */
|
|
|
fbeb5e |
const char *content_type, /* CONTENT_TYPE environment variable */
|
|
|
fbeb5e |
@@ -1597,7 +1598,15 @@ main(int argc, /* I - Number of command-line args */
|
|
|
fbeb5e |
ipp_status == IPP_BAD_REQUEST)
|
|
|
fbeb5e |
break;
|
|
|
fbeb5e |
else if (job_auth == NULL && ipp_status > IPP_BAD_REQUEST)
|
|
|
fbeb5e |
+ {
|
|
|
fbeb5e |
+ if (!validation_retried)
|
|
|
fbeb5e |
+ {
|
|
|
fbeb5e |
+ validation_retried = 1;
|
|
|
fbeb5e |
+ sleep(10);
|
|
|
fbeb5e |
+ continue;
|
|
|
fbeb5e |
+ }
|
|
|
fbeb5e |
goto cleanup;
|
|
|
fbeb5e |
+ }
|
|
|
fbeb5e |
}
|
|
|
fbeb5e |
|
|
|
fbeb5e |
/*
|