From: Michael R Sweet Date: Tue, 18 Jun 2024 15:12:45 +0000 (-0400) Subject: Fix porting error. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f369610261f483095fa9543d33a690568ac72acd;p=thirdparty%2Fcups.git Fix porting error. --- diff --git a/cups/json.c b/cups/json.c index de19e3d58b..f71deb2c8c 100644 --- a/cups/json.c +++ b/cups/json.c @@ -1208,7 +1208,7 @@ cupsJSONImportURL( if (!_cups_strcasecmp(httpGetField(http, HTTP_FIELD_CONNECTION), "close")) { httpClearFields(http); - if (!httpReconnect2(http, 30000, NULL)) + if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; @@ -1232,7 +1232,7 @@ cupsJSONImportURL( // Send the GET request... if (!httpWriteRequest(http, "GET", resource)) { - if (httpReconnect2(http, 30000, NULL)) + if (!httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_UNAUTHORIZED; continue; @@ -1263,7 +1263,7 @@ cupsJSONImportURL( break; } - if (!httpReconnect2(http, 30000, NULL)) + if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; @@ -1277,7 +1277,7 @@ cupsJSONImportURL( httpFlush(http); // Reconnect... - if (!httpReconnect2(http, 30000, NULL)) + if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break;