You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
diff -up cups-2.3.3op2/backend/ipp.c.validate-retry cups-2.3.3op2/backend/ipp.c
|
|
--- cups-2.3.3op2/backend/ipp.c.validate-retry 2021-03-11 12:55:46.461135739 +0100
|
|
+++ cups-2.3.3op2/backend/ipp.c 2021-03-11 13:29:09.312859343 +0100
|
|
@@ -256,6 +256,7 @@ main(int argc, /* I - Number of comm
|
|
get_job_attrs = 0, /* Does printer support Get-Job-Attributes? */
|
|
send_document = 0, /* Does printer support Send-Document? */
|
|
validate_job = 0, /* Does printer support Validate-Job? */
|
|
+ validation_retried = 0, /* Indicate whether Validate-Job was retried */
|
|
copies, /* Number of copies for job */
|
|
copies_remaining; /* Number of copies remaining */
|
|
const char *content_type, /* CONTENT_TYPE environment variable */
|
|
@@ -1559,7 +1560,15 @@ main(int argc, /* I - Number of comm
|
|
ipp_status == IPP_STATUS_ERROR_BAD_REQUEST)
|
|
break;
|
|
else if (job_auth == NULL && ipp_status > IPP_STATUS_ERROR_BAD_REQUEST)
|
|
+ {
|
|
+ if (!validation_retried)
|
|
+ {
|
|
+ validation_retried = 1;
|
|
+ sleep(10);
|
|
+ continue;
|
|
+ }
|
|
goto cleanup;
|
|
+ }
|
|
}
|
|
|
|
/*
|