Blame SOURCES/cups-validate-1st.patch

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