From f369610261f483095fa9543d33a690568ac72acd Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 18 Jun 2024 11:12:45 -0400 Subject: [PATCH] Fix porting error. --- cups/json.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.47.3