From: Zdenek Dohnal Date: Tue, 2 Sep 2025 08:24:47 +0000 (+0200) Subject: Fix unreachable code in IPP backend X-Git-Tag: v2.4.13~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d80ddbab50c6ec45d48e8b6320a66bd62b752c5;p=thirdparty%2Fcups.git Fix unreachable code in IPP backend --- diff --git a/backend/ipp.c b/backend/ipp.c index 26a33b536d..08a41efeff 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -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)