Skip to content

Commit 8d80ddb

Browse files
committed
Fix unreachable code in IPP backend
1 parent 83bc0de commit 8d80ddb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

backend/ipp.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,14 +2140,7 @@ main(int argc, /* I - Number of command-line args */
21402140
password_tries = 0;
21412141
else
21422142
{
2143-
if (ipp_status != IPP_STATUS_ERROR_SERVICE_UNAVAILABLE &&
2144-
ipp_status != IPP_STATUS_ERROR_BUSY)
2145-
{
2146-
ippDelete(response);
2147-
ipp_status = IPP_STATUS_OK;
2148-
break;
2149-
}
2150-
else if (ipp_status == IPP_STATUS_ERROR_INTERNAL)
2143+
if (ipp_status == IPP_STATUS_ERROR_INTERNAL)
21512144
{
21522145
waitjob_tries ++;
21532146

@@ -2158,6 +2151,13 @@ main(int argc, /* I - Number of command-line args */
21582151
break;
21592152
}
21602153
}
2154+
else if (ipp_status != IPP_STATUS_ERROR_SERVICE_UNAVAILABLE &&
2155+
ipp_status != IPP_STATUS_ERROR_BUSY)
2156+
{
2157+
ippDelete(response);
2158+
ipp_status = IPP_STATUS_OK;
2159+
break;
2160+
}
21612161
}
21622162

21632163
if (response)

0 commit comments

Comments
 (0)