]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix unreachable code in IPP backend
authorZdenek Dohnal <zdohnal@redhat.com>
Tue, 2 Sep 2025 08:24:47 +0000 (10:24 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Tue, 2 Sep 2025 08:24:47 +0000 (10:24 +0200)
backend/ipp.c

index 26a33b536d798c3c2365e1f9dddacb5835a547d0..08a41efeffc073f28c89e030a40bc56070d6c5a5 100644 (file)
@@ -2140,14 +2140,7 @@ main(int  argc,                          /* I - Number of command-line args */
        password_tries = 0;
       else
       {
-       if (ipp_status != IPP_STATUS_ERROR_SERVICE_UNAVAILABLE &&
-           ipp_status != IPP_STATUS_ERROR_BUSY)
-       {
-         ippDelete(response);
-          ipp_status = IPP_STATUS_OK;
-          break;
-       }
-       else if (ipp_status == IPP_STATUS_ERROR_INTERNAL)
+       if (ipp_status == IPP_STATUS_ERROR_INTERNAL)
        {
          waitjob_tries ++;
 
@@ -2158,6 +2151,13 @@ main(int  argc,                          /* I - Number of command-line args */
            break;
          }
        }
+       else if (ipp_status != IPP_STATUS_ERROR_SERVICE_UNAVAILABLE &&
+           ipp_status != IPP_STATUS_ERROR_BUSY)
+       {
+         ippDelete(response);
+         ipp_status = IPP_STATUS_OK;
+         break;
+       }
       }
 
       if (response)