]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix loop in fix for httpClose (Issue #1223)
authorMichael R Sweet <msweet@msweet.org>
Fri, 11 Apr 2025 14:39:53 +0000 (10:39 -0400)
committerMichael R Sweet <msweet@msweet.org>
Fri, 11 Apr 2025 14:39:53 +0000 (10:39 -0400)
cups/http.c

index 613493ded1702b07d1e1f38d9f6613efa00880ad..6fdcec3064b7a7d4d47453e4083fdfc57d6289d3 100644 (file)
@@ -337,7 +337,7 @@ httpClose(http_t *http)                     // I - HTTP connection
     AuthorizationFree(http->auth_ref, kAuthorizationFlagDefaults);
 #endif // HAVE_AUTHORIZATION_H
 
-  for (field = HTTP_FIELD_ACCEPT; field < HTTP_FIELD_MAX; field ++)
+  for (field = HTTP_FIELD_ACCEPT_LANGUAGE; field < HTTP_FIELD_MAX; field ++)
   {
     free(http->default_fields[field]);
     if (field >= HTTP_FIELD_ACCEPT_ENCODING || http->fields[field] != http->_fields[field])