]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix porting error.
authorMichael R Sweet <msweet@msweet.org>
Tue, 18 Jun 2024 15:12:45 +0000 (11:12 -0400)
committerMichael R Sweet <msweet@msweet.org>
Tue, 18 Jun 2024 15:12:45 +0000 (11:12 -0400)
cups/json.c

index de19e3d58b2670ab1ad9c42a255bf9697237e9b8..f71deb2c8cc893e9a2cc0693d4296d192152b14f 100644 (file)
@@ -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;